From 4161d8137d4f6117f17b110b0ec022d9350bf8e6 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Tue, 24 Oct 2023 20:03:13 +0200 Subject: [PATCH] chore: prepare tracing-log 0.2.0 (#2772) # 0.2.0 (October 24th, 2023) 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][log-feature] instead. ### Breaking Changes - Remove deprecated `env_logger` feature. This removes the dependency on the unmaintained `atty` crate, resolving the security advisory [GHSA-g98v-hv3f-hcfr]/[RUSTSEC-2021-0145]. ([#2771]) - Remove deprecated `trace_logger` feature. ([#2771]) [#2771]: https://github.com/tokio-rs/tracing/pull/2771 [`tracing_subscriber::fmt::Subscriber`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Subscriber.html [`tracing_subscriber::fmt::Layer`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Layer.html [`Targets`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/targets/struct.Targets.html [`EnvFilter`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/struct.EnvFilter.html [log-feature]: https://docs.rs/tracing/latest/tracing/#emitting-log-records [GHSA-g98v-hv3f-hcfr]: https://github.com/advisories/GHSA-g98v-hv3f-hcfr [RUSTSEC-2021-0145]: https://rustsec.org/advisories/RUSTSEC-2021-0145.html --- tracing-log/CHANGELOG.md | 27 +++++++++++++++++++++++++++ tracing-log/Cargo.toml | 2 +- tracing-subscriber/Cargo.toml | 4 ++-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/tracing-log/CHANGELOG.md b/tracing-log/CHANGELOG.md index d33e97f1f7..4b19bb9734 100644 --- a/tracing-log/CHANGELOG.md +++ b/tracing-log/CHANGELOG.md @@ -1,3 +1,30 @@ +# 0.2.0 (October 24th, 2023) + +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][log-feature] instead. + +### Breaking Changes + +- Remove deprecated `env_logger` feature. This removes the dependency + on the unmaintained `atty` crate, resolving the security advisory + [GHSA-g98v-hv3f-hcfr]/[RUSTSEC-2021-0145]. ([#2771]) +- Remove deprecated `trace_logger` feature. ([#2771]) + +[#2771]: https://github.com/tokio-rs/tracing/pull/2771 +[`tracing_subscriber::fmt::Subscriber`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Subscriber.html +[`tracing_subscriber::fmt::Layer`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Layer.html +[`Targets`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/targets/struct.Targets.html +[`EnvFilter`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/struct.EnvFilter.html +[log-feature]: https://docs.rs/tracing/latest/tracing/#emitting-log-records +[GHSA-g98v-hv3f-hcfr]: https://github.com/advisories/GHSA-g98v-hv3f-hcfr +[RUSTSEC-2021-0145]: https://rustsec.org/advisories/RUSTSEC-2021-0145.html + # 0.1.4 (October 23rd, 2023) ### Changes diff --git a/tracing-log/Cargo.toml b/tracing-log/Cargo.toml index efed1028df..0b7bfa5214 100644 --- a/tracing-log/Cargo.toml +++ b/tracing-log/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tracing-log" -version = "0.1.4" +version = "0.2.0" authors = ["Tokio Contributors "] edition = "2018" repository = "https://github.com/tokio-rs/tracing" diff --git a/tracing-subscriber/Cargo.toml b/tracing-subscriber/Cargo.toml index 3ee5a99e41..1473e7a6b8 100644 --- a/tracing-subscriber/Cargo.toml +++ b/tracing-subscriber/Cargo.toml @@ -48,7 +48,7 @@ smallvec = { optional = true, version = "1.9.0" } once_cell = { optional = true, version = "1.13.0" } # fmt -tracing-log = { path = "../tracing-log", version = "0.1.3", optional = true, default-features = false, features = ["log-tracer", "std"] } +tracing-log = { path = "../tracing-log", version = "0.2.0", optional = true, default-features = false, features = ["log-tracer", "std"] } nu-ansi-term = { version = "0.46.0", optional = true } time = { version = "0.3.2", features = ["formatting"], optional = true } @@ -73,7 +73,7 @@ valuable-serde = { version = "0.1.0", optional = true, default-features = false tracing = { path = "../tracing", version = "0.1.35" } tracing-mock = { path = "../tracing-mock", features = ["tracing-subscriber"] } log = "0.4.17" -tracing-log = { path = "../tracing-log", version = "0.1.3" } +tracing-log = { path = "../tracing-log", version = "0.2.0" } criterion = { version = "0.3.6", default-features = false } regex = { version = "1", default-features = false, features = ["std"] } tracing-futures = { path = "../tracing-futures", version = "0.2.0", default-features = false, features = ["std-future", "std"] }