This release contains two breaking changes: the removal of the env_logger
and trace_logger
features. Below are the suggested migration paths:
env_logger
: users should use tracing_subscriber::fmt::Subscriber
or tracing_subscriber::fmt::Layer
with the Targets
or EnvFilter
filters instead.trace_logger
: users should use the tracing
crate's “log” feature flag instead.env_logger
feature. This removes the dependency on the unmaintained atty
crate, resolving the security advisory GHSA-g98v-hv3f-hcfr/RUSTSEC-2021-0145. (#2771)trace_logger
feature. (#2771)env_logger
feature in favor of tracing_subscriber::fmt::Subscriber
([#2752])#[2752]: https://github.com/tokio-rs/tracing/pull/2752
LogTracer::with_interest_cache
to enable a limited form of per-record Interest
caching for log
records (#1636)LogTracer
not honoring tracing
max level filters (#1543)Thanks to @Millione, @teozkr, @koute, @Folyd, and @ben0x539 for contributing to this release!
log
crate so that users can ensure consistent versions ([#602])AsLog
implementation for tracing::LevelFilter
(#1248)AsTrace
implementation for log::LevelFilter
(#1248)Log::enabled
implementation for LogTracer
not calling Subscriber::enabled
(#1254)Log::enabled
implementation for LogTracer
not checking the max level hint (#1247)TraceLogger
(use tracing
's “log” and “log-always” feature flags instead)log/std
feature flag (#406)