We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd911e0 commit 19af292Copy full SHA for 19af292
tracing-macros/Cargo.toml
@@ -17,11 +17,10 @@ keywords = ["logging", "tracing"]
17
license = "MIT"
18
19
[dependencies]
20
-tracing = "0.1.18"
+tracing = "0.1.20"
21
22
[dev-dependencies]
23
-tracing-log = "0.1"
24
-env_logger = "0.7"
+tracing-subscriber = "0.2"
25
26
[badges]
27
maintenance = { status = "experimental" }
tracing-macros/examples/factorial.rs
@@ -12,9 +12,7 @@ fn factorial(n: u32) -> u32 {
12
}
13
14
fn main() {
15
- env_logger::Builder::new().parse_filters("trace").init();
16
- #[allow(deprecated)]
- let subscriber = tracing_log::TraceLogger::new();
+ let subscriber = tracing_subscriber::fmt().finish();
tracing::subscriber::with_default(subscriber, || dbg!(factorial(4)));
0 commit comments