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 han
Hi,
I want to have two loggers that logs to two different files. Here is
what I have:
import logging
import logging.handlers
project1Handler = logging.handlers.RotatingFileHandler( 'project1.log',
maxBytes=1024)
project1Handler.setLevel(logging.INFO)
formatter1 = logging.Formatter('%(name)-12s: