Thomas Heller wrote:

> I want the script by default to be agnostic about the libraries
> logging.  When I want to see the log messages, I can always do
> 
> logging.basicConfig()
> 
> in the script to see the log messages.
> 
> I get the behaviour that I want when I add a 'NULL' handler in the
> library, but is this really how logging is intended to be used?

I would support ...err, what's the opposite of a feature request?
Anyway, another hack, slightly more lightweight/intrusive:

logging.root.manager.emittedNoHandlerWarning = True

Peter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to