[New-bugs-announce] [issue41704] logging module needs some form of introspection or debugging support

Jack Jansen report at bugs.python.org
Thu Sep 3 11:29:29 EDT 2020


New submission from Jack Jansen <Jack.Jansen at cwi.nl>:

The logging module and its API make it easy to modify the behaviour of all loggers used in any package in your program.

Unfortunately the downside of this is that if any author of any module that you use changes the global logger configuration you get in a situation where all your logger calls are not behaving as expected. Moreover, it is very difficult to debug this and to find the culprit.

If the logger module had a global "debug logger usage" flag which would make it emit a log message whenever a call changed the global configuration this would help, especially if the messages were vectored through a single function or method that you could then set a breakpoint on.

----------
components: Library (Lib)
messages: 376308
nosy: jackjansen
priority: normal
severity: normal
status: open
title: logging module needs some form of introspection or debugging support
type: enhancement
versions: Python 3.8

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


More information about the New-bugs-announce mailing list