[New-bugs-announce] [issue2287] Problems using logging module with logging.basicConfig(level=logging.NOTSET)
panhudie
report at bugs.python.org
Fri Mar 14 14:57:07 CET 2008
New submission from panhudie <panhudie at gmail.com>:
The problem is in the logging.basicConfig(**kwargs):
<...>
level = kwargs.get("level")
if level:
root.setLevel(level)
So you can not set the level like this, this logger will log WARNING(and
above) instead of all the level:
logging.basicConfig(level=logging.NOTSET)
#logging.NOTSET == 0, root default level is WARNING
I have seen this problem was fixed in the trunk, but not in python25 branch:
level = kwargs.get("level")
if level is not None:
root.setLevel(level)
----------
components: Library (Lib)
messages: 63527
nosy: panhudie
severity: minor
status: open
title: Problems using logging module with logging.basicConfig(level=logging.NOTSET)
type: behavior
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2287>
__________________________________
More information about the New-bugs-announce
mailing list