File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name = "tracing-tree"
3
3
version = " 0.1.0"
4
4
authors = [" David Barsky <me@davidbarsky.com>" ]
5
5
edition = " 2018"
6
+ license = " MIT OR Apache-2.0"
6
7
7
8
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
9
Original file line number Diff line number Diff line change @@ -25,12 +25,14 @@ information on the console:
25
25
1502ms <b > INFO</b > exit
26
26
</pre >
27
27
28
+ (Format inspired by [ slog-term] ( https://github.com/slog-rs/slog#terminal-output-example ) )
29
+
28
30
## Setup
29
31
30
32
After instrumenting your app with
31
33
[ tracing] ( https://github.com/tokio-rs/tracing ) , add this subscriber like this:
32
34
33
- ```
34
- let subscriber = Registry::default().with(HierarchicalLayer::new(2));
35
- tracing::subscriber::set_global_default(subscriber).unwrap();
35
+ ``` rust
36
+ let subscriber = Registry :: default (). with (HierarchicalLayer :: new (2 ));
37
+ tracing :: subscriber :: set_global_default (subscriber ). unwrap ();
36
38
```
You can’t perform that action at this time.
0 commit comments