Logging package for Python. Based on PEP 282 and comments thereto in
comp.lang.python, and influenced by Apache's log4j system.
Should work under Python versions >= 1.5.2, except that source line
information is not available unless 'sys._getframe()' is.
Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved.
LogRecord
A LogRecord instance represents an event being logged.
|
Formatter
Formatter instances are used to convert a LogRecord to text.
|
BufferingFormatter
A formatter suitable for formatting a number of records.
|
Filter
Filter instances are used to perform arbitrary filtering of
LogRecords.
|
Filterer
A base class for loggers and handlers which allows them to share
common code.
|
Handler
Handler instances dispatch logging events to specific destinations.
|
StreamHandler
A handler class which writes logging records, appropriately
formatted, to a stream.
|
FileHandler
A handler class which writes formatted logging records to disk
files.
|
PlaceHolder
PlaceHolder instances are used in the Manager logger hierarchy to
take the place of nodes for which no loggers have been defined.
|
Manager
There is [under normal circumstances] just one Manager instance,
which holds the hierarchy of loggers.
|
Logger
Instances of the Logger class represent a single logging channel.
|
RootLogger
A root logger is not that different to any other logger, except
that it must have a logging level and there is only one instance of
it in the hierarchy.
|
_loggerClass
Instances of the Logger class represent a single logging channel.
|
|
getLevelName(level)
Return the textual representation of logging level 'level'. |
|
|
|
addLevelName(level,
levelName)
Associate 'levelName' with 'level'. |
|
|
|
_acquireLock()
Acquire the module-level lock for serializing access to shared data. |
|
|
|
_releaseLock()
Release the module-level lock acquired by calling _acquireLock(). |
|
|
|
makeLogRecord(dict)
Make a LogRecord whose attributes are defined by the specified
dictionary, This function is useful for converting a logging event
received over a socket connection (which is sent as a dictionary)
into a LogRecord instance. |
|
|
|
setLoggerClass(klass)
Set the class to be used when instantiating a logger. |
|
|
|
getLoggerClass()
Return the class to be used when instantiating a logger. |
|
|
|
basicConfig(**kwargs)
Do basic configuration for the logging system. |
|
|
|
getLogger(name=None)
Return a logger with the specified name, creating it if necessary. |
|
|
|
critical(msg,
*args,
**kwargs)
Log a message with severity 'CRITICAL' on the root logger. |
|
|
|
fatal(msg,
*args,
**kwargs)
Log a message with severity 'CRITICAL' on the root logger. |
|
|
|
error(msg,
*args,
**kwargs)
Log a message with severity 'ERROR' on the root logger. |
|
|
|
exception(msg,
*args)
Log a message with severity 'ERROR' on the root logger, with
exception information. |
|
|
|
warning(msg,
*args,
**kwargs)
Log a message with severity 'WARNING' on the root logger. |
|
|
|
warn(msg,
*args,
**kwargs)
Log a message with severity 'WARNING' on the root logger. |
|
|
|
info(msg,
*args,
**kwargs)
Log a message with severity 'INFO' on the root logger. |
|
|
|
debug(msg,
*args,
**kwargs)
Log a message with severity 'DEBUG' on the root logger. |
|
|
|
log(level,
msg,
*args,
**kwargs)
Log 'msg % args' with the integer severity 'level' on the root
logger. |
|
|
|
disable(level)
Disable all logging calls less severe than 'level'. |
|
|
|
shutdown(handlerList=[ ] )
Perform any cleanup actions in the logging system (e.g. |
|
|
|
exithook(status,
old_exit=sys.exit) |
|
|