Package logilab-common-0 :: Package 39 :: Package 0 :: Module logger :: Class AbstractLogger
[frames] | no frames]

Class AbstractLogger

source code

logger interface.
Priorities allow to filter on the importance of events
An event gets logged if it's priority is lower than the threshold

Instance Methods
 
__init__(self, threshold=LOG_DEBUG, priority_indicator=1) source code
 
log(self, priority=LOG_DEBUG, message='', substs=None)
log a message with priority <priority>...
source code
 
log_traceback(self, priority=LOG_ERR, tb_info=None)
log traceback information with priority <priority>...
source code
Method Details

log(self, priority=LOG_DEBUG, message='', substs=None)

source code 
log a message with priority <priority>
substs are optional substrings

log_traceback(self, priority=LOG_ERR, tb_info=None)

source code 
log traceback information with priority <priority>