Skip to content

Commit a019a80

Browse files
authored
chore: prepare tracing-tree (#3)
Resolves #1.
1 parent 2265735 commit a019a80

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "tracing-tree"
33
version = "0.1.0"
44
authors = ["David Barsky <me@davidbarsky.com>"]
55
edition = "2018"
6+
license = "MIT OR Apache-2.0"
67

78
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
89

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ information on the console:
2525
1502ms <b> INFO</b> exit
2626
</pre>
2727

28+
(Format inspired by [slog-term](https://github.com/slog-rs/slog#terminal-output-example))
29+
2830
## Setup
2931

3032
After instrumenting your app with
3133
[tracing](https://github.com/tokio-rs/tracing), add this subscriber like this:
3234

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();
3638
```

0 commit comments

Comments
 (0)