Skip to content

Commit ee2f7b0

Browse files
davidbarskyhawkw
authored andcommitted
log: remove deprecated env_logger and trace_logger APIs (tokio-rs#2771)
Removing the `env_logger` feature in order to address GHSA-g98v-hv3f-hcfr. In addition, this PR also removes the deprecated `trace_logger` module, in preparation for an upcoming v0.2.0 of `tracing-log`. For additional details on the approach, please refer to tokio-rs#2750. Note that this PR depends on tokio-rs#2770, so this PR will temporarily have more commits than intended. --------- Co-authored-by: Eliza Weisman <[email protected]>
1 parent a9708a3 commit ee2f7b0

File tree

5 files changed

+1
-513
lines changed

5 files changed

+1
-513
lines changed

tracing-log/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ This crate provides:
4343
- [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.
4444
- [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s
4545
and outputs them as [`tracing::Event`]s.
46-
- An [`env_logger`] module, with helpers for using the [`env_logger` crate]
47-
with `tracing` (optional, enabled by the `env_logger` feature).
4846

4947
[`tracing`]: https://crates.io/crates/tracing
5048
[`log`]: https://crates.io/crates/log

tracing-log/src/env_logger.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

tracing-log/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
//! - [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.
1414
//! - [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s
1515
//! and outputs them as [`tracing::Event`].
16-
//! - An [`env_logger`] module, with helpers for using the [`env_logger` crate]
17-
//! with `tracing` (optional, enabled by the `env-logger` feature).
1816
//!
1917
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
2018
//!
@@ -70,8 +68,6 @@
7068
//!
7169
//! # Feature Flags
7270
//! * `log-tracer`: enables the `LogTracer` type (on by default)
73-
//! * `env_logger`: enables the `env_logger` module, with helpers for working
74-
//! with the [`env_logger` crate].
7571
//! * `interest-cache`: makes it possible to configure an interest cache for
7672
//! logs emitted through the `log` crate (see [`Builder::with_interest_cache`]); requires `std`
7773
//!

0 commit comments

Comments
 (0)