Application level tracing for Rust.
This release contains several new features. It also increases the minimum supported Rust version (MSRV) to Rust 1.63.0.
RollingFileAppender
s (#2227)Builder::filename_suffix
parameter (#2225)Sync
bound from writer for NonBlocking
(#2607)This release of tracing-subscriber
adds support for the NO_COLOR
environment
variable (an informal standard to disable emitting ANSI color escape codes) in
fmt::Layer
, reintroduces support for the chrono
crate, and increases the
minimum supported Rust version (MSRV) to Rust 1.63.0.
It also introduces several minor API improvements.
chrono
implementations of FormatTime
(#2690)NO_COLOR
environment variable in
fmt::Layer
(#2647)format::Writer::new()
public (#2680)layer::Filter
for Option<Filter>
(#2407)tracing-log
to 0.2 (#2772)Thanks to @shayne-fletcher, @dmlary, @kaifastromai, and @jsgf for contributing!
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)This release fixes a potential stack use-after-free in the
Instrument::into_inner
method. Only uses of this method are affected by this
bug.
mem::ManuallyDrop
instead of mem::forget
in Instrument::into_inner
(#2765)Thanks to @cramertj and @manishearth for finding and fixing this issue!
This release adds several additional features to the tracing
macros. In
addition, it updates the tracing-core
dependency to v0.1.32 and
the tracing-attributes
dependency to v0.1.27.
ValueSet
s of any length (#2508)tracing-attributes
: updated to 0.1.27
tracing-core
: updated to 0.1.32
clippy::let_with_type_underscore
] in macro-generated
code ([#2609])unknown_lints
in macro-generated code (#2626)#[instrument]
when the "log"
feature is enabled (#2599)This release of tracing-attributes
fixes the Clippy lint
let_with_type_underscore
in code generated by the #[instrument]
attribute in Rust 1.70+.
clippy::let_with_type_underscore
] in macro-generated code (#2609)Thanks to @coolreader19 for contributing to this release!