Is it a bug?
Darren Cui Liang
darren at exoweb.net
Wed Nov 9 04:09:42 EST 2005
Hi, there!
Now I am working around with the "logging" module. Here is the code:
>>> import logging
>>> log1=logging.getLogger("a")
>>> log1.critical("msg")
No handlers could be found for logger "a"
>>> logging.critical("msg")
CRITICAL:root:msg
Since every "logger" is under the "root logger", and if no handler is
found for the logger, the message will be passed to upper level loggers,
until the root,
then why do I get the msg: No handlers could be found for logger "a"
Thanks in advance!
BR
Darren Cui Liang
More information about the Python-list
mailing list