Re: Logging with Logger hierarchies

2006-10-20 Thread Robert
Hi again I have seen my error! I was mistakenly occasionally creating the logger using logger = logging.Logger("a.b.c") instead of logger = logging.getLogger("a.b.c") Doh. I miss my private constructors to save me from such embarrasment ;^) Cheers Robert -- http://mail.python.org/mailman/li

Re: Logging with Logger hierarchies

2006-10-20 Thread Vinay Sajip
> I delved in the code and found that when my logger "a.b.c" is created, > it doesn't create Loggers for "a.b" or "a" but rather instances of a > PlaceHolder class. If I actually call logging.getLogger("a.b") and > logging.getLogger("a") then the PlaceHolders get converted to Loggers > and the hie

Logging with Logger hierarchies

2006-10-20 Thread Robert
Hi all I have been trying to set up a framework with logging implemented using the built in Python logging module. For better or worse, I have decided to base the logger names on the module names. This means that I am using multiple layers of name, eg logging.getLogger("a.b.c"). I am also using lo