Help me with weird logging problem
vinay_sajip at yahoo.co.uk
Tue Mar 6 17:19:53 CET 2012
On Mar 6, 4:09 pm, J <dreadpiratej... at gmail.com> wrote:
> Any idea what I'm doing wrong?
Levels can be set on loggers as well as handlers, and you're only
setting levels on the handlers. The default level on the root logger
is WARNING. A logger checks its level first, and only if the event
passes that test will it be passed to the handlers (which will also
perform level tests).
So, a logger.setLevel(logging.DEBUG) should be all you need to add
before logging anything.
More information about the Python-list