[issue7874] logging.basicConfig should raise warning/exception on second call

Vinay Sajip report at bugs.python.org
Sun Feb 7 21:23:16 CET 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

The fact that the second call will do nothing is specifically documented:

http://docs.python.org/dev/library/logging.html#logging.basicConfig

"This function does nothing if the root logger already has handlers configured for it."

This behaviour is by design, and not an accident caused by "bad coding style". Please check the documentation before posting issues which are not real issues. Thanks.

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7874>
_______________________________________


More information about the Python-bugs-list mailing list