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 -- http://mail.python.org/mailman/listinfo/python-list