Class c.e.l.l.Loggable:

Part of coherence.extern.log.log View Source View In Hierarchy

Known subclasses: coherence.extern.log.log.TwistedLogObserver, coherence.extern.log.test_log.LogFunctionTester, coherence.extern.log.test_log.LogTester, coherence.log.Loggable

Base class for objects that want to be able to log messages with different level of severity. The levels are, in order from least to most: log, debug, info, warning, error.
Class VariableslogCategoryImplementors can provide a category to log their messages under.
Line # Kind Name Docs
650 Method error Log an error. By default this will also raise an exception.
657 Method warning Log a warning. Used for non-fatal problems.
664 Method info Log an informational message. Used for normal operation.
671 Method debug Log a debug message. Used for debugging.
678 Method log Log a log message. Used for debugging recurring events.
685 Method doLog Log a message at the given level, with the possibility of going
709 Method warningFailure Log a warning about a Twisted Failure. Useful as an errback handler:
726 Method logFunction Overridable log function. Default just returns passed message.
730 Method logObjectName Overridable object name function.
def error(self, *args): (source)
Log an error. By default this will also raise an exception.
def warning(self, *args): (source)
Log a warning. Used for non-fatal problems.
def info(self, *args): (source)
Log an informational message. Used for normal operation.
def debug(self, *args): (source)
Log a debug message. Used for debugging.
def log(self, *args): (source)
Log a log message. Used for debugging recurring events.
def doLog(self, level, where, format, *args, **kwargs): (source)
Log a message at the given level, with the possibility of going higher up in the stack.
Parameterslevellog level (type: int )
wherehow many frames to go back from the last log frame; or a function (to log for a future call) (type: int (negative), or function )
kwargsa dict of pre-calculated values from a previous doLog call
Returnsa dict of calculated variables, to be reused in a call to doLog that should show the same location (type: dict )
def warningFailure(self, failure, swallow=True): (source)
Log a warning about a Twisted Failure. Useful as an errback handler: d.addErrback(self.warningFailure)
Parametersswallowwhether to swallow the failure or not (type: bool )
def logFunction(self, *args): (source)
Overridable log function. Default just returns passed message.
def logObjectName(self): (source)
Overridable object name function.
API Documentation for Coherence, generated by pydoctor at 2007-12-08 21:02:38.