[issue41704] logging module needs some form of introspection or debugging support

Vinay Sajip report at bugs.python.org
Thu Sep 3 14:57:30 EDT 2020


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

> if any author of any module that you use changes the global logger configuration

This is an anti-pattern - any library module which does this should have a bug report raised about it. Only applications should change the logging configuration. Can you share which libraries are causing this type of problem for you?

I'm not sure emitting a message using the logging machinery itself would work as expected, as under the changed configuration the dispatch of logging messages might not work as you expect.

Why does setting breakpoints on logging.basicConfig, logging.config.fileConfig and logging.config.dictConfig not work for your use case?

----------

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


More information about the Python-bugs-list mailing list