21 Feb
2020
21 Feb
'20
5:49 p.m.
On 2020-02-21 08:45, jdveiga@gmail.com 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