Simple question about logging module.

Alex Popescu nospam.themindstorm at gmail.com
Tue Jul 31 06:44:41 EDT 2007


"Gabor Urban" <urbangabo at gmail.com> wrote in
news:f7ac28aa0707310146s4f230347qaf42128931cfd831 at mail.gmail.com: 

> ------=_Part_36089_18686793.1185871599583
> Hullo,
> 
> 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,
> 
> Gabor
> 
> 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 
parent.

bests,
./alex
--
.w( the_mindstorm )p.




More information about the Python-list mailing list