1

I use the logging package:

configuration_logger = logging.getLogger("configuration")

It writes a few logs, then for the next one I see that configuration_logger.disabled is True. How can I check why it was changed to True?

1 Answer 1

4

It's probably because you called logging.config.fileConfig or logging.config.dictConfig without declaring disable_existing_loggers to be False (see this search result). The default value of this is True only for reasons of backward compatibility.

You should generally configure logging (using e.g. the above functions) before logging anything.

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.