Tracing

tracing is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. It is alternative to the older log crate and has adapters to be backwards compatible.

To enable tracing in your application, add the following crates to your project:

cargo add tracing tracing-subscriber

For libraries, tracing-subscriber is usually not required.

{{#include tracing/tracing-console.md}}

{{#include ../../links.md}}