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

LOGURU_LEVEL nowhere found in documentation #1324

Open
hoetmaaiers opened this issue Mar 18, 2025 · 2 comments
Open

LOGURU_LEVEL nowhere found in documentation #1324

hoetmaaiers opened this issue Mar 18, 2025 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@hoetmaaiers
Copy link

Curious where I can read up on LOGURU_LEVEL and other related environment variables.
I only discovered their existence through GitHub issues and a couple of unexposed Python files.

Are these meant to be basic tools for development, or should I be thinking about them differently?

@Delgan
Copy link
Owner

Delgan commented Mar 29, 2025

Hi @hoetmaaiers.

The configuration of Loguru through environment variables is mentioned in the Readme as well as in the docs. However, you're right that LOGURU_LEVEL is never explicitly referenced.

It's implicit because all attributes are supported, including the level one:

Each of the add() default parameter can be modified by setting the LOGURU_[PARAM] environment variable.

Given the importance of changing the default level using an environment variable, I agree this should be explicitly mentioned in the documentation.

@Delgan Delgan added the documentation Improvements or additions to documentation label Mar 29, 2025
@hoetmaaiers
Copy link
Author

Thanks @Delgan for pointing me towards this line:

Each of the add() default parameter can be modified by setting the LOGURU_[PARAM] environment variable.

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

2 participants