Skip to content

Conversation

@romanz
Copy link
Owner

@romanz romanz commented Nov 8, 2021

Please use RUST_LOG to specify logging verbosity.
See https://github.com/env-logger-rs/env_logger/ for details.

@Kixunil
Copy link
Contributor

Kixunil commented Nov 8, 2021

Why? I would really, really like to set logging in configuration file. :(

@romanz
Copy link
Owner Author

romanz commented Nov 8, 2021

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.
WDYT?

@Kixunil
Copy link
Contributor

Kixunil commented Nov 8, 2021

Yeah, additional config option called log_filters sounds good.

@Kixunil
Copy link
Contributor

Kixunil commented Nov 8, 2021

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.

@romanz romanz force-pushed the deprecate-verbosity branch 2 times, most recently from db5bafb to 74935b2 Compare November 8, 2021 13:06
@romanz romanz added the enhancement New feature or request label Nov 8, 2021
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.
@romanz romanz force-pushed the deprecate-verbosity branch from 08d93eb to 64bc7e1 Compare November 8, 2021 17:48
@romanz romanz changed the title Deprecate verbose configuration Remove verbose configuration Nov 8, 2021
@romanz romanz merged commit 64bc7e1 into master Nov 8, 2021
@romanz romanz deleted the deprecate-verbosity branch November 8, 2021 17:49
@romanz romanz changed the title Remove verbose configuration Remove verbose configuration and replace it with log_filters Nov 13, 2021
romanz added a commit to romanz/RaspiBolt that referenced this pull request Nov 13, 2021
romanz added a commit to romanz/RaspiBolt that referenced this pull request Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants