[issue876421] logging handlers raise exception on level

Vinay Sajip report at bugs.python.org
Sat Jul 10 11:00:56 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

If I did this for some but not handler classes, then people would probably log issues saying e.g. "Why doesn't NTEventLogHandler" support a level argument? Other handlers do." etc.

What's the big problem with using setLevel() to set the level? If you're after convenience, you could use the dictionary configuration API which allows you to set the levels declaratively.

----------

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


More information about the Python-bugs-list mailing list