getLevelName(level)
Return the textual representation of logging level level
.
If the level is one of the predefined levels (CRITICAL, ERROR, WARNING,
INFO, DEBUG) then you get the corresponding string. If you have
associated levels with names using addLevelName then the name you have
associated with level
is returned.
If a numeric value corresponding to one of the defined levels is passed in, the corresponding string representation is returned.
Otherwise, the string "Level %s" % level is returned.