[issue19455] LoggerAdapter class lacks documented "setLevel" method

Vinay Sajip report at bugs.python.org
Thu Oct 31 00:28:04 CET 2013


Vinay Sajip added the comment:

The adapter provides only the logging methods such as debug(), info() etc., but not methods to configure the logger (such as setLevel). Just use

adapter.logger.setLevel(logging.WARNING)

----------
nosy: +vinay.sajip
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19455>
_______________________________________


More information about the Python-bugs-list mailing list