New submission from panhudie <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2287>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to