Getting the logging level from text representation

Laura Creighton lac at openend.se
Wed Sep 2 13:21:31 CEST 2015


In a message of Wed, 02 Sep 2015 12:14:44 +0200, Antoon Pardon writes:
See:
https://docs.python.org/3.5/library/logging.html#levels

you can just use 30 everywhere for warning, and that is what
Logger.getEffectiveLevel() will tell you even if you initialised
it with the text form.

Laura



More information about the Python-list mailing list