Skip to content

Commit 4161d81

Browse files
authored
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]: #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]: GHSA-g98v-hv3f-hcfr [RUSTSEC-2021-0145]: https://rustsec.org/advisories/RUSTSEC-2021-0145.html
1 parent 1c802c7 commit 4161d81

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

tracing-log/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# 0.2.0 (October 24th, 2023)
2+
3+
This release contains two breaking changes: the removal of the `env_logger`
4+
and `trace_logger` features. Below are the suggested migration paths:
5+
6+
- `env_logger`: users should use [`tracing_subscriber::fmt::Subscriber`]
7+
or [`tracing_subscriber::fmt::Layer`] with the [`Targets`] or
8+
[`EnvFilter`] filters instead.
9+
- `trace_logger`: users should use the `tracing` crate's
10+
["log" feature flag][log-feature] instead.
11+
12+
### Breaking Changes
13+
14+
- Remove deprecated `env_logger` feature. This removes the dependency
15+
on the unmaintained `atty` crate, resolving the security advisory
16+
[GHSA-g98v-hv3f-hcfr]/[RUSTSEC-2021-0145]. ([#2771])
17+
- Remove deprecated `trace_logger` feature. ([#2771])
18+
19+
[#2771]: https://github.com/tokio-rs/tracing/pull/2771
20+
[`tracing_subscriber::fmt::Subscriber`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Subscriber.html
21+
[`tracing_subscriber::fmt::Layer`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/fmt/struct.Layer.html
22+
[`Targets`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/targets/struct.Targets.html
23+
[`EnvFilter`]: https://docs.rs/tracing-subscriber/0.3.17/tracing_subscriber/filter/struct.EnvFilter.html
24+
[log-feature]: https://docs.rs/tracing/latest/tracing/#emitting-log-records
25+
[GHSA-g98v-hv3f-hcfr]: https://github.com/advisories/GHSA-g98v-hv3f-hcfr
26+
[RUSTSEC-2021-0145]: https://rustsec.org/advisories/RUSTSEC-2021-0145.html
27+
128
# 0.1.4 (October 23rd, 2023)
229

330
### Changes

tracing-log/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tracing-log"
3-
version = "0.1.4"
3+
version = "0.2.0"
44
authors = ["Tokio Contributors <[email protected]>"]
55
edition = "2018"
66
repository = "https://github.com/tokio-rs/tracing"

tracing-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ smallvec = { optional = true, version = "1.9.0" }
4848
once_cell = { optional = true, version = "1.13.0" }
4949

5050
# fmt
51-
tracing-log = { path = "../tracing-log", version = "0.1.3", optional = true, default-features = false, features = ["log-tracer", "std"] }
51+
tracing-log = { path = "../tracing-log", version = "0.2.0", optional = true, default-features = false, features = ["log-tracer", "std"] }
5252
nu-ansi-term = { version = "0.46.0", optional = true }
5353
time = { version = "0.3.2", features = ["formatting"], optional = true }
5454

@@ -73,7 +73,7 @@ valuable-serde = { version = "0.1.0", optional = true, default-features = false
7373
tracing = { path = "../tracing", version = "0.1.35" }
7474
tracing-mock = { path = "../tracing-mock", features = ["tracing-subscriber"] }
7575
log = "0.4.17"
76-
tracing-log = { path = "../tracing-log", version = "0.1.3" }
76+
tracing-log = { path = "../tracing-log", version = "0.2.0" }
7777
criterion = { version = "0.3.6", default-features = false }
7878
regex = { version = "1", default-features = false, features = ["std"] }
7979
tracing-futures = { path = "../tracing-futures", version = "0.2.0", default-features = false, features = ["std-future", "std"] }

0 commit comments

Comments
 (0)