Logging in Rust
How to implement logging in Rust libraries and applications?
There are of course various approaches, but I want to highlight one of them now: log + fastrace + logforth.
logis the standard crate for logging in Rust. It provides a common language throughout the ecosystem.fastraceimplements distributed tracing on top oflogAPI.logforthis a flexible logging implementation for applications.
Here is an article focusing on fastrace explaining most of the reasons for this setup, including the difference between fastrace and tokio-rs/tracing.