[ python-Bugs-994416 ] logging module: default levels do not work as documented.

SourceForge.net noreply at sourceforge.net
Tue Jul 20 12:11:31 CEST 2004


Bugs item #994416, was opened at 2004-07-20 06:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=994416&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Roy Smith (roysmith)
Assigned to: Nobody/Anonymous (nobody)
Summary: logging module: default levels do not work as documented.

Initial Comment:
I'm running:

Roy-Smiths-Computer:unit$ uname -a
Darwin Roy-Smiths-Computer.local 7.4.0 Darwin Kernel Version 
7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu
-517.7.7.obj~7/RELEASE_PPC  Power Macintosh powerpc

Roy-Smiths-Computer:unit$ py
Python 2.3.4 (#3, Jun 29 2004, 21:48:03) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more 
information.

Under "6.28.2 Handler Objects", it says:

"setLevel(lvl)  Sets the threshold for this handler to lvl. Logging 
messages which are less severe than lvl will be ignored. When a 
handler is created, the level is set to NOTSET (which causes all 
messages to be processed)."

The default level of NOTSET does not work as advertised.  The 
attached program prints:

---------------
ERROR two
DEBUG three
ERROR four
---------------

The first line, "DEBUG one", was not processed.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=994416&group_id=5470


More information about the Python-bugs-list mailing list