Re: Specifying two log files with one configuration file

2013-01-08 Thread Vinay Sajip
Peter Steele pwsteele at gmail.com writes: I have been unable to get this to work. My current conf file looks like this: Try with the following changes: [logger_test] level: DEBUG handlers: test propagate: 0 qualname: test The qualname: test is what identifies the logger as the logger named

Specifying two log files with one configuration file

2013-01-06 Thread Peter Steele
I want to configure the Python logging module to manage two separate log files, allowing me to do something like this: import logging import logging.config logging.config.fileConfig(mylogging.conf) root = logging.getLogger() test = logging.getLogger(test) root.debug(This is a message targeted