Simple question about logging module.
nospam.themindstorm at gmail.com
Tue Jul 31 12:44:41 CEST 2007
"Gabor Urban" <urbangabo at gmail.com> wrote in
news:f7ac28aa0707310146s4f230347qaf42128931cfd831 at mail.gmail.com:
> I have started to use Python's logging, and got a problem. I have
> created some loggers and wrote some lines in the log. The problem is,
> that most of the lines appear doubled in the log, and some lines do
> not appear at all.
> Any ideas or comments are wellcome,
> Here is the code:
> import sys
> import logging
> l = logging.getLogger('XmlTester')
> la = logging.getLogger('XmlTester.XmlParser')
> lb = logging.getLogger('XmlTester.TestExecutor')
I other worlds, loggers are hierarchical, and so XmlTester.XmlParser may be
a child of XmlTester and so inheriting some of the properties of its
.w( the_mindstorm )p.
More information about the Python-list