[Python-Dev] Consistent logging in the standard library (original) (raw)

Matthew F. Barnes mfb at lotusland.dyndns.org
Wed Sep 10 17:21:47 EDT 2003


Fred L. Drake, Jr. said:

Michael Chermside writes: > Seems like an uncommon request, but one which shouldn't be made > impossible for those who want it. But couldn't it be achieved by > writing a handler which simply re-logged the message at the new > spot in the hierarchy? That would solve that use case handily; if that's the right approach, such a handler should be provided as part of the standard set of handlers.

I agree, this seems much cleaner than what I've proposed.

In fact, the "ForwardingHandler" idea could be submitted to SourceForge as a separate patch for logging, and then the issue drops out of this "consistent logging" PEP altogether.

So that changes my proposal as follows:

Matthew Barnes



More information about the Python-Dev mailing list