My Situation
There may be one or more configured loggers, but I don't know what their names are.
Requirement
For testing purposes, I need to reconfigure logging handlers that were previously configured to log to stdout with a different format and logging level.
print (logging.Logger.manager.loggerDict.keys())
found by digging the sources of logging package
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With