Re: logging with logging.config.fileConfig

2012-02-20 Thread Jean-Michel Pichavant
MRAB wrote: On 19/02/2012 20:23, Herman wrote: I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [snip] [logger_abc] level=DEBUG handlers=consoleHandler qualname=abc Add this l

Re: logging with logging.config.fileConfig

2012-02-19 Thread MRAB
On 19/02/2012 20:23, Herman wrote: I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [snip] [logger_abc] level=DEBUG handlers=consoleHandler qualname=abc Add this line to stop t

logging with logging.config.fileConfig

2012-02-19 Thread Herman
I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [loggers] keys=root,abc [handlers] keys=consoleHandler [formatters] keys=detailFormatter [logger_root] level=DEBUG handlers=consol