Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
GenericSetup.context.Logger Class Reference

List of all members.

Public Member Functions

def __init__
def debug
def info
def warning
def error
def exception
def critical
def log

Private Attributes

 _id
 _messages
 _logger

Detailed Description

Definition at line 51 of file context.py.


Constructor & Destructor Documentation

def GenericSetup.context.Logger.__init__ (   self,
  id,
  messages 
)
Initialize the logger with a name and an optional level.

Definition at line 55 of file context.py.

00055 
00056     def __init__(self, id, messages):
00057         """Initialize the logger with a name and an optional level.
00058         """
00059         self._id = id
00060         self._messages = messages
00061         self._logger = logging.getLogger('GenericSetup.%s' % id)


Member Function Documentation

def GenericSetup.context.Logger.critical (   self,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with severity 'CRITICAL'.

Definition at line 87 of file context.py.

00087 
00088     def critical(self, msg, *args, **kwargs):
00089         """Log 'msg % args' with severity 'CRITICAL'.
00090         """
00091         self.log(logging.CRITICAL, msg, *args, **kwargs)

Here is the call graph for this function:

def GenericSetup.context.Logger.debug (   self,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with severity 'DEBUG'.

Definition at line 62 of file context.py.

00062 
00063     def debug(self, msg, *args, **kwargs):
00064         """Log 'msg % args' with severity 'DEBUG'.
00065         """
00066         self.log(logging.DEBUG, msg, *args, **kwargs)

Here is the call graph for this function:

def GenericSetup.context.Logger.error (   self,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with severity 'ERROR'.

Definition at line 77 of file context.py.

00077 
00078     def error(self, msg, *args, **kwargs):
00079         """Log 'msg % args' with severity 'ERROR'.
00080         """
00081         self.log(logging.ERROR, msg, *args, **kwargs)

Here is the call graph for this function:

Here is the caller graph for this function:

def GenericSetup.context.Logger.exception (   self,
  msg,
  args 
)
Convenience method for logging an ERROR with exception information.

Definition at line 82 of file context.py.

00082 
00083     def exception(self, msg, *args):
00084         """Convenience method for logging an ERROR with exception information.
00085         """
00086         self.error(msg, *args, **{'exc_info': 1})

Here is the call graph for this function:

def GenericSetup.context.Logger.info (   self,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with severity 'INFO'.

Definition at line 67 of file context.py.

00067 
00068     def info(self, msg, *args, **kwargs):
00069         """Log 'msg % args' with severity 'INFO'.
00070         """
00071         self.log(logging.INFO, msg, *args, **kwargs)

Here is the call graph for this function:

Here is the caller graph for this function:

def GenericSetup.context.Logger.log (   self,
  level,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with the integer severity 'level'.

Definition at line 92 of file context.py.

00092 
00093     def log(self, level, msg, *args, **kwargs):
00094         """Log 'msg % args' with the integer severity 'level'.
00095         """
00096         self._messages.append((level, self._id, msg))
00097         self._logger.log(level, msg, *args, **kwargs)
00098 

Here is the caller graph for this function:

def GenericSetup.context.Logger.warning (   self,
  msg,
  args,
  kwargs 
)
Log 'msg % args' with severity 'WARNING'.

Definition at line 72 of file context.py.

00072 
00073     def warning(self, msg, *args, **kwargs):
00074         """Log 'msg % args' with severity 'WARNING'.
00075         """
00076         self.log(logging.WARNING, msg, *args, **kwargs)

Here is the call graph for this function:


Member Data Documentation

Definition at line 58 of file context.py.

Definition at line 60 of file context.py.

Definition at line 59 of file context.py.


The documentation for this class was generated from the following file: