Re: Proper way to delete/kill a logger?

2011-11-28 Thread cassiope
Thanks Chris and JM, I will explore how much work it's going to take to change the various scripts to _always_ starting the logger from main(). As further explanation - this code predates the logging module, and many of the functions/classes had an optional argument for the home- made logger - and

Re: Proper way to delete/kill a logger?

2011-11-28 Thread Roy Smith
In article , Jean-Michel Pichavant wrote: > Loggers are static objects managed by the module itself. For reasons I can't quite explain, that sentence makes me want to sing The Lumberjack Song. "I'm a logger(*) and I'm OK..." (*) Yes, I know that's not right. -- http://mail.python.org/mailma

Re: Proper way to delete/kill a logger?

2011-11-28 Thread Jean-Michel Pichavant
cassiope wrote: I've been trying to migrate some code to using the standard python logging classes/objects. And they seem quite capable of doing what I need them to do. Unfortunately there's a problem in my unit tests. It's fairly common to have to create quite a few entities in the course of a

Re: Proper way to delete/kill a logger?

2011-11-28 Thread Chris Withers
On 28/11/2011 04:16, cassiope wrote: I've been trying to migrate some code to using the standard python logging classes/objects. And they seem quite capable of doing what I need them to do. Unfortunately there's a problem in my unit tests. It's fairly common to have to create quite a few entiti

Proper way to delete/kill a logger?

2011-11-27 Thread cassiope
I've been trying to migrate some code to using the standard python logging classes/objects. And they seem quite capable of doing what I need them to do. Unfortunately there's a problem in my unit tests. It's fairly common to have to create quite a few entities in the course of a series of tests.