Package logilab-common-0 :: Package 36 :: Package 1 :: Module logger
[frames] | no frames]

Module logger

source code

Define a logger interface and two concrete loggers: one which prints
everything on stdout, the other using syslog.

:copyright: 2000-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses

# FIXME use logging from stdlib instead.

Classes
  AbstractLogger
logger interface.
  PrintLogger
logger implementation
  SysLogger
logger implementation
Functions
 
make_logger(method='print', threshold=LOG_DEBUG, sid=None, output=None)
return a logger for the given method
source code
Variables
  LOG_EMERG = 0
  LOG_ALERT = 1
  LOG_CRIT = 2
  LOG_ERR = 3
  LOG_WARN = 4
  LOG_NOTICE = 5
  LOG_INFO = 6
  LOG_DEBUG = 7
  INDICATORS = ['emergency', 'alert', 'critical', 'error', 'warn...
Function Details

make_logger(method='print', threshold=LOG_DEBUG, sid=None, output=None)

source code 
return a logger for the given method

known methods are 'print', 'eprint' and syslog'


Variables Details

INDICATORS

Value:
['emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info\
', 'debug']