2 ms·
I've been writing Python daily for 15 years but when I have to do any configuration beyond `basicConfig()`, I still groan. In many instances I have wanted to do
by rgovostes 4y ago
I've been writing Python daily for 15 years but when I have to do any configuration beyond `basicConfig()`, I still groan. In many instances I have wanted to do something like temporarily turn on logging of HTTP requests, which turns into a much more involved effort than it ought to be.
I just recently discovered that there's no documented way to dump the current configuration (https://stackoverflow.com/q/72624883 https://stackoverflow.com/q/72624883) so you can see what loggers exist and where their output is going.