On 2020-02-21 08:45, [email protected] wrote:
Nice idea... in principle.

But, what if my program has several loggers with several handlers each having 
its own logging info level? Would the Python's interpreter CLI argument (or the 
ENV variable) override all loggers and handlers logging levels? Why should CLI 
/ ENV override those loggers and handlers?


I believe that if you've already set up comprehensive logging, this technique is not needed. Sometimes such a set up can handle basicConfig() being called early, sometimes not. But it's optional, not default behavior.

My understanding of the use case is one wants to see additional debug logs from project and dependencies without having to set up logging first.

-Mike
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/BZZ5POLPWQXL3N6AGIKVSC7QJKFBJV74/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to