
## Motivation EnvFilter with ansi_term will say something like the following when statically disabled filters are present: ``` warning: some trace filter directives would enable traces ... = note: the static max level is `LEVEL` = help: to enable LEVEL logging, ... ``` Without the ansi_term feature, it instead says something like the following: ``` warning: some trace filter directives would enable traces ... note: the static max level is `LEVEL` note: to enable LEVEL logging, ... ``` This is due to a simple error in cfg'd code that ignores the requested prefix and always uses `note:` when `not(feature = "ansi_term")`. ## Solution Use the unused `prefix` variable to do what it does when `feature = "ansi_term"`. The output without ansi_term is now ``` warning: some trace filter directives would enable traces ... note: the static max level is `LEVEL` help: to enable LEVEL logging, ... ```
tracing-subscriber
Utilities for implementing and composing tracing
subscribers.
Compiler support: requires rustc
1.49+
Supported Rust Versions
Tracing is built against the latest stable release. The minimum supported version is 1.49. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version.
Tracing follows the same compiler support policies as the rest of the Tokio project. The current stable Rust compiler and the three most recent minor versions before it will always be supported. For example, if the current stable compiler version is 1.45, the minimum supported version will not be increased past 1.42, three minor versions prior. Increasing the minimum supported compiler version is not considered a semver breaking change as long as doing so complies with this policy.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tracing by you, shall be licensed as MIT, without any additional terms or conditions.