Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for changing logging level of a single logger #196

Open
Guillemdb opened this issue Nov 1, 2024 · 0 comments
Open

Add example for changing logging level of a single logger #196

Guillemdb opened this issue Nov 1, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Guillemdb
Copy link
Member

We want to add a tutorial exaplining how to set the log level of specific loggers within our codebase.

@vmarkovtsev I forgot how to set environment variables to target specific loggers. For example if my logger name is lib.module I would like to run my app so that the logging level defaults to INFO for all loggers except this one, that should be DEBUG.

I remember it was something like

LOG_LEVEL=INFO "lib.module.log_level=DEBUG" python my_script.py

Do you remember how it was done? I would like to add an example to the docs so I don't forget again.

@Guillemdb Guillemdb added the documentation Improvements or additions to documentation label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant