[Python-Dev] PEP282 and the warnings framework

Michael Gilfix mgilfix@eecs.tufts.edu
Thu, 16 May 2002 18:13:38 -0400


On Thu, May 16 @ 20:36, Walter Dörwald wrote:
> > Then use
> > logging.setLoggerClass to ask the logging system to instantiate your own
> > logger class. 
> 
> ... which is done here. But this would change the LogRecord classes
> that are used on a global scale. I'd like to decide which class should
> be used when I'm creating the event. BTW, in setLoggerClass() you should
> probably use
>      if not issubclass(klass, Logger):
> instead of
>      if not (Logger in klass.__bases__):

  Wish I had stumbled across this post before mine. +1 on this,
and I'm glad to hear it'll be included. Perhaps you might find
my set idea useful..

          -- Mike

-- 
Michael Gilfix
mgilfix@eecs.tufts.edu

For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html