[issue34350] Non obvious logging handler behaviour

Vinay Sajip report at bugs.python.org
Wed Aug 8 18:14:19 EDT 2018


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

The logging module-level convenience functions are specifically there for the use of casual, short scripts where users don't want to be concerned with the details of loggers and handlers.

Even if you accidentally configure logging in library code because you typed logging.XXX() instead of logger.XXX(), that's just like any other bug introduced because of a typo. It would presumably get caught in testing.

Obviously, this behaviour can't be changed because of the need to maintain backward compatibility (and IMO there is no reason to change this behaviour, as it is like this by design).

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34350>
_______________________________________


More information about the Python-bugs-list mailing list