|
| 1 | +# 0.3.10 (Apr 1, 2022) |
| 2 | + |
| 3 | +This release adds several new features, including a `Filter` implementation and |
| 4 | +new builder API for `EnvFilter`, support for using a `Vec<L> where L: Layer` as |
| 5 | +a `Layer`, and a number of smaller API improvements to make working with dynamic |
| 6 | +and reloadable layers easier. |
| 7 | + |
| 8 | +### Added |
| 9 | + |
| 10 | +- **registry**: Implement `Filter` for `EnvFilter`, allowing it to be used with |
| 11 | + per-layer filtering ([#1983]) |
| 12 | +- **registry**: `Filter::on_new_span`, `Filter::on_enter`, |
| 13 | + `Filter::on_exit`, `Filter::on_close` and `Filter::on_record` callbacks to |
| 14 | + allow `Filter`s to track span states internally ([#1973], [#2017], [#2031]) |
| 15 | +- **registry**: `Filtered::filter` and `Filtered::filter_mut` accessors |
| 16 | + ([#1959]) |
| 17 | +- **registry**: `Filtered::inner` and `Filtered::inner_mut` accessors to borrow |
| 18 | + the wrapped `Layer` ([#2034]) |
| 19 | +- **layer**: Implement `Layer` for `Vec<L: Layer>`, to allow composing together |
| 20 | + a dynamically sized list of `Layer`s ([#2027]) |
| 21 | +- **layer**: `Layer::boxed` method to make type-erasing `Layer`s easier |
| 22 | + ([#2026]) |
| 23 | +- **fmt**: `fmt::Layer::writer` and `fmt::Layer::writer_mut` accessors ([#2034]) |
| 24 | +- **fmt**: `fmt::Layer::set_ansi` method to allow changing the ANSI formatting |
| 25 | + configuration at runtime ([#2034]) |
| 26 | +- **env-filter**: `EnvFilter::builder` to configure a new `EnvFilter` prior to |
| 27 | + parsing it ([#2035]) |
| 28 | +- Several documentation fixes and improvements ([#1972], [#1971], [#2023], |
| 29 | + [#2023]) |
| 30 | + |
| 31 | +### Fixed |
| 32 | + |
| 33 | +- **fmt**: `fmt::Layer`'s auto traits no longer depend on the `Subscriber` type |
| 34 | + parameter's auto traits ([#2025]) |
| 35 | +- **env-filter**: Fixed missing help text when the `ansi` feature is disabled |
| 36 | + ([#2029]) |
| 37 | + |
| 38 | +Thanks to new contributors @TimoFreiberg and @wagenet, as well as @CAD97 for |
| 39 | +contributing to this release! |
| 40 | + |
| 41 | +[#1983]: https://github.com/tokio-rs/tracing/pull/1983 |
| 42 | +[#1973]: https://github.com/tokio-rs/tracing/pull/1973 |
| 43 | +[#2017]: https://github.com/tokio-rs/tracing/pull/2017 |
| 44 | +[#2031]: https://github.com/tokio-rs/tracing/pull/2031 |
| 45 | +[#1959]: https://github.com/tokio-rs/tracing/pull/1959 |
| 46 | +[#2034]: https://github.com/tokio-rs/tracing/pull/2034 |
| 47 | +[#2027]: https://github.com/tokio-rs/tracing/pull/2027 |
| 48 | +[#2026]: https://github.com/tokio-rs/tracing/pull/2026 |
| 49 | +[#2035]: https://github.com/tokio-rs/tracing/pull/2035 |
| 50 | +[#1972]: https://github.com/tokio-rs/tracing/pull/1972 |
| 51 | +[#1971]: https://github.com/tokio-rs/tracing/pull/1971 |
| 52 | +[#2023]: https://github.com/tokio-rs/tracing/pull/2023 |
| 53 | +[#2025]: https://github.com/tokio-rs/tracing/pull/2025 |
| 54 | +[#2029]: https://github.com/tokio-rs/tracing/pull/2029 |
| 55 | + |
1 | 56 | # 0.3.9 (Feb 17, 2022)
|
2 | 57 |
|
3 | 58 | This release updates the minimum supported Rust version (MSRV) to 1.49.0, and
|
|
0 commit comments