R. David Murray <rdmur...@bitdance.com> added the comment:

Wow, I didn't realize that's how logging worked.  My understanding was a module 
should just get a logger and log messages, and if the application didn't do any 
setup beforehand, the first logging call would cause messages to be written to 
stdout (or stderr) in a default format.  In fact, I thought that I had observed 
that behavior in the past, but I just tested it and you are right, it complains 
about not having a handler.  

This definitely seems like a logging bug to me.  IMO the only thing a module 
should need to do is call getlogger with its qualified name and log messages.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to