[Repoze-dev] debug logger evilness?

2010-08-06 Thread Chris Withers
Hi All, Is there any reason why repoze.bfg.log:make_stream_logger manually instantiates a logger rather than doing logging.getLogger(name)? It makes it harder than it needs to be to replace the handlers of the logger for unit testing purposes :-/ cheers, Chris ___

Re: [Repoze-dev] debug logger evilness?

2010-08-06 Thread Chris McDonough
Calling getLogger results in an *atexit* hook related to a handler being registered for the current Python process. It might also, depending on its mood, print to stdout. These things make it miserable to actually unit test any application which calls getLogger. See also http://plope.com/Members

Re: [Repoze-dev] debug logger evilness?

2010-08-06 Thread Chris Withers
Chris McDonough wrote: > Calling getLogger results in an *atexit* hook related to a handler being > registered for the current Python process. It might also, depending on > its mood, print to stdout. These things make it miserable to actually > unit test any application which calls getLogger. Se

Re: [Repoze-dev] debug logger evilness?

2010-08-06 Thread Chris McDonough
On Fri, 2010-08-06 at 17:49 +0100, Chris Withers wrote: > Chris McDonough wrote: > > Calling getLogger results in an *atexit* hook related to a handler being > > registered for the current Python process. It might also, depending on > > its mood, print to stdout. These things make it miserable to