🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_macros

Macro dbg

Source
macro_rules! dbg {
    (target: $target:expr, level: $level:expr, $ex:expr) => { ... };
    (level: $level:expr, $ex:expr) => { ... };
    (target: $target:expr, $ex:expr) => { ... };
    ($ex:expr) => { ... };
}
Expand description

Similar to the std::dbg! macro, but generates tracing events rather than printing to stdout.

By default, the verbosity level for the generated events is DEBUG, but this can be customized.