rust-lang / log

Logging implementation for Rust
https://docs.rs/log
Apache License 2.0
2.12k stars 248 forks source link

Clarify documentation and simplify initialization of `STATIC_MAX_LEVEL` #594

Closed ptosi closed 8 months ago

ptosi commented 9 months ago

Rephrase the documentation to make it clear that the max_level_* features are also used by release builds.

With the MSRV bump, new language features allow initializing the constant in a way that's conciser and hopefully clearer.

Add some tests, used to validate the change.