[ python-Bugs-1008295 ] logging.getLevelName returns a number
SourceForge.net
noreply at sourceforge.net
Fri Aug 13 02:15:02 CEST 2004
Bugs item #1008295, was opened at 2004-08-12 16:56
Message generated for change (Settings changed) made by rhettinger
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: Vinay Sajip (vsajip)
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