Re: Simple question about logging module.



"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.

.



Relevant Pages

  • Logging with multiple loggers/handlers
    ... file, stderr, and the NT Eventlog, but I don't seem to ... be getting the right combination of handlers called. ... Currently, logging to stderr is working for all four loggers, but only ...
    (comp.lang.python)
  • "Ax Men" returns to History Channel
    ... The AX MEN Are Back Returning Monday, March 2 at 10PM ET/PT on HISTORY ... Land and Sea on the Original Loggers ... series about the treacherous life of Pacific Northwest timber cutters, ... whom are members of logging families who go back to the time when the ...
    (rec.arts.tv)
  • logging package problems
    ... I found that the configuration system of the new logging package of Python ... where webTestLogin mysteriously lost its capitalization. ... 'propagate' forwards log messages to other loggers, ...
    (comp.lang.python)
  • logging package problems
    ... I found that the configuration system of the new logging package of Python ... where webTestLogin mysteriously lost its capitalization. ... 'propagate' forwards log messages to other loggers, ...
    (comp.lang.python)
  • Re: Map drive based on OU location or group membership?
    ... You should instantiate an object that represents the authenticated user that ... is logging on and then get that object's parent. ... Then grab the ou attribute ...
    (microsoft.public.windows.server.active_directory)