configure(log_conf=None,
log_level=None,
log_channels=None,
log_file=None)
| source code
|
Configures the logging system based on the setting specified on the
command line or Python logging module compatible configuration file.
Defaults to logging messages at the INFO level or higher to stdout.
Options in the configuration file always override those given on the
command line.
- Parameters:
log_conf (string) - Filename of a logging module configuration file. See http://antonym.org/node/76 and http://docs.python.org/lib/logging-config-fileformat.html.
log_level (integer) - Include messages at this level or higher
log_channels (list of string) - Include messages sent only on these channels, or None meaning
all
log_file (string) - Log messages in a basic, fixed format to this file. Provided
for convenience for users who do not want to write their own
logging conf file.
|