Re: Simple question about logging module.
- From: Alex Popescu <nospam.themindstorm@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 10:44:41 +0000 (UTC)
"Gabor Urban" <urbangabo@xxxxxxxxx> wrote in
news:f7ac28aa0707310146s4f230347qaf42128931cfd831@xxxxxxxxxxxxxx:
------=_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.
.
- Prev by Date: Re: simple string backspace question
- Next by Date: interaction of 'with' and 'yield'
- Previous by thread: simple string backspace question
- Next by thread: interaction of 'with' and 'yield'
- Index(es):
Relevant Pages
|