This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients gjb1002, vinay.sajip
Date 2009-06-02.11:48:40
SpamBayes Score 5.4069707e-05
Marked as misclassified No
Message-id <1243943323.73.0.528151994758.issue6136@psf.upfronthosting.co.za>
In-reply-to
Content
Re. point (a): The configuration logic assumes that if you put things in
the configuration file, you want them included - that means
instantiating handlers, which will generally open their output files
(uness the delay parameter is set) and sockets. If you use append
semantics for files and configure levels as you want them, the files are
opened but not written to (and closed when the handlers are closed or
the application exits). This is not a bug, as it was designed to work
like this.

Re. point (b): Agreed that the presence of the sections may not seem
necessary as you could achieve the same with loggers=, handlers= etc.
The sections were originally placed there as a place to hang other
settings which could apply across loggers, handlers etc. - which never
materialised. In any case, it's not a big problem and not worth breaking
backward compatibility for. The qualname is not always the same as the
value in the section header - see the documentation for an example of
this, search for "compiler.parser". The values in e.g. the section
header and the handlers= section are just names to allow the
configuration to cross-refer different parts of the configuration - so
you could use h1, h2 etc. as handler names.

Re. point (c): there are alternative ways of configuring logging; for
one example, see http://www.red-dove.com/python_config.html and look at
"logconfig.cfg" and "logconfig.py" in the linked tarball/zip.
History
Date User Action Args
2009-06-02 11:48:43vinay.sajipsetrecipients: + vinay.sajip, gjb1002
2009-06-02 11:48:43vinay.sajipsetmessageid: <1243943323.73.0.528151994758.issue6136@psf.upfronthosting.co.za>
2009-06-02 11:48:41vinay.sajiplinkissue6136 messages
2009-06-02 11:48:40vinay.sajipcreate