-
Notifications
You must be signed in to change notification settings - Fork 526
Remove verbose configuration and replace it with log_filters
#615
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
Conversation
|
Why? I would really, really like to set logging in configuration file. :( |
|
You're right, let's replace it with a new configuration - to allow specify logging filters via https://docs.rs/env_logger/0.9.0/env_logger/struct.Builder.html#method.parse_filters. |
|
Yeah, additional config option called |
|
One more thing: it leaks internal structure of modules in the configuration by allowing to set filters per-module. I think it's fine but we should document that it's forever unstable and people should only set specific modules temporarily when we tell them during debugging. |
db5bafb to
74935b2
Compare
Please use `RUST_LOG` or `--log-filter` to specify logging verbosity. See https://github.com/env-logger-rs/env_logger/ for details.
Similar to `RUST_LOG` environment variable.
08d93eb to
64bc7e1
Compare
verbose configurationverbose configuration and replace it with log_filters
Please use
RUST_LOGto specify logging verbosity.See https://github.com/env-logger-rs/env_logger/ for details.