multiple logger
Vinay Sajip
vinay_sajip at yahoo.co.uk
Fri Oct 7 16:00:36 EDT 2005
Just replace
logging.basicConfig(level=logging.DEBUG)
with
logging.getLogger().setLevel(logging.DEBUG)
and you will no longer get messages written to the console. The
basicConfig() method is meant for really basic use of logging - it
allows one call to set level, and to add either a console handler a
simple (non-rotating) file handler to the root logger. See the
documentation for more information.
Vinay Sajip
More information about the Python-list
mailing list