When to use which log level in Rust tracing?

48 views Asked by At

I started using tracing and other logging libraries in Rust. They have macros (trace, debug, info, warn, error) to emit logs at different levels.

When should I use which one of them?

I saw some examples in the library docs and info, warn, error are pretty straight-forward but trace and debug are very similar and I don't know where I should use them.

0

There are 0 answers