[issue876421] logging handlers raise exception on level
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>
More information about the Python-bugs-list