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.
To use, simply 'import logging' and log away!
|
BufferingFormatter
A formatter suitable for formatting a number of records.
|
|
FileHandler
A handler class which writes formatted logging records to disk
files.
|
|
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.
|
|
Formatter
Formatter instances are used to convert a LogRecord to text.
|
|
Handler
Handler instances dispatch logging events to specific
destinations.
|
|
LogRecord
A LogRecord instance represents an event being logged.
|
|
Logger
Instances of the Logger class represent a single logging
channel.
|
|
Manager
There is [under normal circumstances] just one Manager instance,
which holds the hierarchy of loggers.
|
|
PlaceHolder
PlaceHolder instances are used in the Manager logger hierarchy
to take the place of nodes for which no loggers have been
defined.
|
|
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.
|
|
StreamHandler
A handler class which writes logging records, appropriately
formatted, to a stream.
|
|
_loggerClass
Instances of the Logger class represent a single logging
channel.
|
|
|
|
_releaseLock()
Release the module-level lock acquired by calling
_acquireLock(). |
source code
|
|
|
|
|
|
|
critical(msg,
*args,
**kwargs)
Log a message with severity 'CRITICAL' on the root logger. |
source code
|
|
|
debug(msg,
*args,
**kwargs)
Log a message with severity 'DEBUG' on the root logger. |
source code
|
|
|
disable(level)
Disable all logging calls less severe than 'level'. |
source code
|
|
|
error(msg,
*args,
**kwargs)
Log a message with severity 'ERROR' on the root logger. |
source code
|
|
|
exception(msg,
*args)
Log a message with severity 'ERROR' on the root logger, with
exception information. |
source code
|
|
|
fatal(msg,
*args,
**kwargs)
Log a message with severity 'CRITICAL' on the root logger. |
source code
|
|
|
|
|
|
|
getLoggerClass()
Return the class to be used when instantiating a logger. |
source code
|
|
|
info(msg,
*args,
**kwargs)
Log a message with severity 'INFO' on the root logger. |
source code
|
|
|
log(level,
msg,
*args,
**kwargs)
Log 'msg % args' with the integer severity 'level' on the root
logger. |
source code
|
|
|
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. |
source code
|
|
|
|
|
|
|
warn(msg,
*args,
**kwargs)
Log a message with severity 'WARNING' on the root logger. |
source code
|
|
|
warning(msg,
*args,
**kwargs)
Log a message with severity 'WARNING' on the root logger. |
source code
|
|
|
BASIC_FORMAT = ' %(levelname)s:%(name)s:%(message)s '
|
|
CRITICAL = 50
|
|
DEBUG = 10
|
|
ERROR = 40
|
|
FATAL = 50
|
|
INFO = 20
|
|
NOTSET = 0
|
|
WARN = 30
|
|
WARNING = 30
|
|
__status__ = ' beta '
|
|
_defaultFormatter = <logging.Formatter instance at 0x81a80>
|
|
_handlerList = [ <ZConfig.components.logger.loghandler.StartupH...
|
|
_handlers = { <logging.StreamHandler instance at 0x10715d0>: 1, ...
|
|
_levelNames = { 0: ' NOTSET ' , 5: ' TRACE ' , 10: ' DEBUG ' , 15: ' BLAT ...
|
|
_lock = <_RLock(None, 0)>
|
|
_srcfile = ' /Library/Frameworks/Python.framework/Versions/2.4/ ...
|
|
_startTime = 1193343983.97
|
|
raiseExceptions = 1
|
|
root = logging.getLogger()
|