[New-bugs-announce] [issue6399] Error reporting by logging.config.fileConfig()

Mike report at bugs.python.org
Thu Jul 2 11:50:31 CEST 2009

New submission from Mike <python at amadron.com>:

I had a logging.conf file with the following logger def in it:


And I couldn't understand why all my log messages were coming out twice.
 It took me four hours :-\ to realise I had misspelt "propagate".

Wouldn't it be better if spurious names raised parsing exceptions?


P.S. Another thing that might have helped me track this down a little
quicker is if I could have printed the name of the logger that was the
source of some output. %(name)s gives the logger that *received* the log
message.  If there was another format variable for the logger that was
the source of a log message I would have seen one message from Builder
and one message from root and it would have been more obvious what was
going on.

components: Extension Modules
messages: 90007
nosy: mike
severity: normal
status: open
title: Error reporting by logging.config.fileConfig()
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list