Create JSON Log Files In Rust With tracing
rust
```cargo
= "0.1"
tracing-subscriber =
```
use ;
tracing
This is what I'm using for my default logs to produce JSON output in Rust apps.
-
The biggest thing to note is that in order to use the ` .json() [TODO: Code shorthand span ] call, you have to add the "feature" in Cargo.toml
Footnotes And References
- •
- •
- •