[ python-Bugs-1008295 ] logging.getLevelName returns a number

SourceForge.net noreply at sourceforge.net
Thu Aug 12 23:56:33 CEST 2004


Bugs item #1008295, was opened at 2004-08-12 18:56
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=1008295&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Paulo Eduardo Neves (neves)
Assigned to: Nobody/Anonymous (nobody)
Summary: logging.getLevelName returns a number

Initial Comment:
logging.getLevelName function doc says that it returns
the "textual representation of logging level", but if
the argument is already the level name, the log level
integer is returned. It should return the argument.

The problem is that if I add my own levels, and call
LoggerInstance.log( levelName, message ), the formatter
will save the level number in the log, insted of the
desired level name. 

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

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


More information about the Python-bugs-list mailing list