Configuration functions for the logging package for Python. The core package
is 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-2008 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
- Create and return formatters
- _install_handlers(cp, formatters)
- Install and return handlers
- _install_loggers(cp, handlers, disable_existing_loggers)
- Create and install loggers
- Resolve a dotted name to a global object.
- fileConfig(fname, defaults=None, disable_existing_loggers=1)
- Read the logging configuration from a ConfigParser-format file.
This can be called several times from an application, allowing an end user
the ability to select from various pre-canned configurations (if the
developer provides a mechanism to present the choices and load the chosen
In versions of ConfigParser which have the readfp method [typically
shipped in 2.x versions of Python], you can pass in a file-like object
rather than a filename, in which case the file-like object will be read
- Start up a socket server on the specified port, and listen for new
These will be sent as a file suitable for processing by fileConfig().
Returns a Thread object on which you can call start() to start the server,
and which you can join() when appropriate. To stop the server, call
- Stop the listening server which was created with a call to listen().
||DEFAULT_LOGGING_CONFIG_PORT = 9030|
RESET_ERROR = 104
__file__ = '/usr/lib/python2.6/logging/config.pyc'
__name__ = 'logging.config'
__package__ = 'logging'
_listener = None