1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] What is the suggested way of reloading log configuration changes at runtime?

Discussão em 'Python' iniciado por Stack, Setembro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Python application that has been initialized with a specific log configuration (e.g. from a configuration object or from a YAML file using Python's logging framework). While the application is running, I want to be able to change something, for example the root log level, and have this change be applied without having to restart the application. I come from a Java background and this is a typical feature in frameworks like Log4j in that ecosystem.

    Is there a suggested way to do this in Python, without writing custom code and watchdog package? I'm looking for an out-of-the-box solution.

    Continue reading...

Compartilhe esta Página