mirror of
https://github.com/tokio-rs/tracing.git
synced 2026-04-26 07:12:21 +00:00
subscriber: Prepare 0.2.2 release (#609)
### Added - **fmt**: Added `flatten_event` to `SubscriberBuilder` (#599) - **fmt**: Added `with_level` to `SubscriberBuilder` (#594) Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ edition = "2018"
|
||||
stack-error = []
|
||||
|
||||
[dependencies]
|
||||
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.1", default-features = false, features = ["registry", "fmt"] }
|
||||
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.2", default-features = false, features = ["registry", "fmt"] }
|
||||
tracing = { path = "../tracing", version = "0.1"}
|
||||
|
||||
[badges]
|
||||
|
||||
@@ -15,10 +15,10 @@ use tracing_subscriber::{
|
||||
/// when formatting the fields of each span in a trace. When no formatter is
|
||||
/// provided, the [default format] is used instead.
|
||||
///
|
||||
/// [`Layer`]: https://docs.rs/tracing-subscriber/0.2.1/tracing_subscriber/layer/trait.Layer.html
|
||||
/// [`Layer`]: https://docs.rs/tracing-subscriber/0.2.2/tracing_subscriber/layer/trait.Layer.html
|
||||
/// [`SpanTrace`]: ../struct.SpanTrace.html
|
||||
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.1/tracing_subscriber/fmt/trait.FormatFields.html
|
||||
/// [default format]: https://docs.rs/tracing-subscriber/0.2.1/tracing_subscriber/fmt/format/struct.DefaultFields.html
|
||||
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.2/tracing_subscriber/fmt/trait.FormatFields.html
|
||||
/// [default format]: https://docs.rs/tracing-subscriber/0.2.2/tracing_subscriber/fmt/format/struct.DefaultFields.html
|
||||
pub struct ErrorLayer<S, F = DefaultFields> {
|
||||
format: F,
|
||||
|
||||
@@ -70,7 +70,7 @@ where
|
||||
{
|
||||
/// Returns a new `ErrorLayer` with the provided [field formatter].
|
||||
///
|
||||
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.1/tracing_subscriber/fmt/trait.FormatFields.html
|
||||
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.2/tracing_subscriber/fmt/trait.FormatFields.html
|
||||
pub fn new(format: F) -> Self {
|
||||
Self {
|
||||
format,
|
||||
|
||||
Reference in New Issue
Block a user