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

Builder get current log level #331

Open
xeruf opened this issue Aug 13, 2024 · 1 comment
Open

Builder get current log level #331

xeruf opened this issue Aug 13, 2024 · 1 comment

Comments

@xeruf
Copy link

xeruf commented Aug 13, 2024

I would like to set the log level of a specific module depending on the global loglevel, specifically -1 - i.e. if the global loglevel (as set by the environment variable RUST_LOG) is Debug, the level should be Info.
If no level is set via environment variable, it should default to only Errors.

I think this could be added to the builder to request already set directives, so that I don't have to go about parsing the environment variables again.

@epage
Copy link
Contributor

epage commented Aug 13, 2024

Could you provide example code the API you have in mind for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants