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

Format builder's state as RUST_LOG-like value #257

Open
nyurik opened this issue Dec 10, 2022 · 0 comments
Open

Format builder's state as RUST_LOG-like value #257

nyurik opened this issue Dec 10, 2022 · 0 comments

Comments

@nyurik
Copy link

nyurik commented Dec 10, 2022

For logging purposes, I would like to print the RUST_LOG and possibly RUST_LOG_STYLE values as ingested by the env_logger. Is there a way to serialize internal state of the env_logger::Builder as a RUST_LOG-like string?

I could of course just read the RUST_LOG env var, and do a default fallback, but it seems this won't be as clean as having the builder format its own state?

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

1 participant