[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>:
Hi,
I had a logging.conf file with the following logger def in it:
[logger_Builder]
level=DEBUG
handlers=consoleStderr
qualname=Builder
propogate=0
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?
Thanks,
Mike.
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>
<http://bugs.python.org/issue6399>
_______________________________________
More information about the Python-bugs-list
mailing list