3

I have several libraries which use the logging library. I want to access all loggers defined in those libraries and set the logging level i want without touching the code of those libraries. I need to that dynamically because i don't know in advance the loggers those libraries will define

How would you do that?

1 Answer 1

5

The logger classes defined are stored in logging.Logger.manager.loggerDict.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.