Package wtf :: Package app :: Package services :: Module log :: Class WtfLogger
[hide private]
[frames] | no frames]

Class WtfLogger

source code

      object --+        
               |        
logging.Filterer --+    
                   |    
      logging.Logger --+
                       |
                      WtfLogger

Improved logger class, which can wind up stack more than one frame

Unfortunately the logging code is not flexible enough to simply extend the API, so we're actually copying the code with slight differences. Always the same game :-(

Instance Methods [hide private]
 
_log(self, level, msg, args, exc_info=None, stackwind=1)
Low-level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record.
source code
 
findCaller(self, stackwind=1)
Find the stack frame of the caller so that we can note the source file name, line number and function name.
source code
 
exception(self, msg, *args, **kwargs)
Convenience method for logging an ERROR with exception information.
source code

Inherited from logging.Logger: __init__, addHandler, callHandlers, critical, debug, error, fatal, getChild, getEffectiveLevel, handle, info, isEnabledFor, log, makeRecord, removeHandler, setLevel, warn, warning

Inherited from logging.Filterer: addFilter, filter, removeFilter

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from logging.Logger: manager, root

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_log(self, level, msg, args, exc_info=None, stackwind=1)

source code 
Low-level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record.
Overrides: logging.Logger._log

findCaller(self, stackwind=1)

source code 
Find the stack frame of the caller so that we can note the source file name, line number and function name.
Overrides: logging.Logger.findCaller

exception(self, msg, *args, **kwargs)

source code 
Convenience method for logging an ERROR with exception information.
Overrides: logging.Logger.exception