[Python-Dev] Using logging in the stdlib and its unit tests (original) (raw)

Barry Warsaw barry at python.org
Wed Dec 8 00:38:55 CET 2010


On Dec 07, 2010, at 04:59 PM, Robert Kern wrote:

As a library author, I would dearly love to just add logging liberally without placing any additional burden to the users of my library. If my users wants to read those logs, he will configure logging. If he doesn't, he won't. With the current behavior, I can't do that. If I add logging, he has to add code just to silence a message that is meaningless to him (after I get the support emails asking if things are broken and explain how to silence it). If I add a NullHandler, I remove the ability for him to use logging.basicConfig(), the easiest and most straightforward way for him to add logging to his application.

+1

-Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20101207/82167d30/attachment-0001.pgp>



More information about the Python-Dev mailing list