Package XPyLIB :: Module xlogging :: Class XLogger
[hide private]
[frames] | no frames]

Class XLogger

source code

logging.Filterer --+    
                   |    
      logging.Logger --+
                       |
                      XLogger

Instance Methods [hide private]
 
__init__(self, name, level=0)
Base logging class fo xlogging.
source code
 
trace(self, msg, *args, **kwargs)
Log 'msg % args' with severity 'TRACE'.
source code
 
dbgtrace(self, msg, *args, **kwargs)
Log 'msg % args' with severity 'DBGTRACE'.
source code

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

Inherited from logging.Logger (private): _log

Inherited from logging.Filterer: addFilter, filter, removeFilter

Class Variables [hide private]

Inherited from logging.Logger: manager, root

Method Details [hide private]

__init__(self, name, level=0)
(Constructor)

source code 

Base logging class fo xlogging.

After importing xlogging this class set as default class for new loggers.
Overrides: logging.Logger.__init__

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

source code 

Log 'msg % args' with severity 'TRACE'.

To pass exception information, use the keyword argument exc_info with a true value, e.g.

logger.trace("Houston, we have a %s", "thorny problem", exc_info=1)

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

source code 

Log 'msg % args' with severity 'DBGTRACE'.

To pass exception information, use the keyword argument exc_info with a true value, e.g.

logger.dbgtrace("Houston, we have a %s", "thorny problem", exc_info=1)