logging.config
index
/usr/lib/python2.6/logging/config.py

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!

 
Modules
       
logging
os
socket
string
struct
sys
thread
threading
traceback
types

 
Functions
       
_create_formatters(cp)
Create and return formatters
_install_handlers(cp, formatters)
Install and return handlers
_install_loggers(cp, handlers, disable_existing_loggers)
Create and install loggers
_resolve(name)
Resolve a dotted name to a global object.
_strip_spaces(alist)
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
configuration).
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
using readfp.
listen(port=9030)
Start up a socket server on the specified port, and listen for new
configurations.
 
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
stopListening().
stopListening()
Stop the listening server which was created with a call to listen().

 
Data
        DEFAULT_LOGGING_CONFIG_PORT = 9030
RESET_ERROR = 104
__file__ = '/usr/lib/python2.6/logging/config.pyc'
__name__ = 'logging.config'
__package__ = 'logging'
_listener = None