Skip to content

Commit

Permalink
log: remove deprecated env_logger and trace_logger APIs (tokio-rs…
Browse files Browse the repository at this point in the history
…#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]>
  • Loading branch information
2 people authored and kaffarell committed May 22, 2024
1 parent a9708a3 commit ee2f7b0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 513 deletions.
2 changes: 0 additions & 2 deletions tracing-log/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ This crate provides:
- [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.
- [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s
and outputs them as [`tracing::Event`]s.
- An [`env_logger`] module, with helpers for using the [`env_logger` crate]
with `tracing` (optional, enabled by the `env_logger` feature).

[`tracing`]: https://crates.io/crates/tracing
[`log`]: https://crates.io/crates/log
Expand Down
49 changes: 0 additions & 49 deletions tracing-log/src/env_logger.rs

This file was deleted.

4 changes: 0 additions & 4 deletions tracing-log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
//! - [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.
//! - [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s
//! and outputs them as [`tracing::Event`].
//! - An [`env_logger`] module, with helpers for using the [`env_logger` crate]
//! with `tracing` (optional, enabled by the `env-logger` feature).
//!
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
//!
Expand Down Expand Up @@ -70,8 +68,6 @@
//!
//! # Feature Flags
//! * `log-tracer`: enables the `LogTracer` type (on by default)
//! * `env_logger`: enables the `env_logger` module, with helpers for working
//! with the [`env_logger` crate].
//! * `interest-cache`: makes it possible to configure an interest cache for
//! logs emitted through the `log` crate (see [`Builder::with_interest_cache`]); requires `std`
//!
Expand Down
Loading

0 comments on commit ee2f7b0

Please sign in to comment.