Macro log::trace [] [src]

macro_rules! trace {
    (target: $target:expr, $($arg:tt)*) => { ... };
    ($($arg:tt)*) => { ... };
}

Logs a message at the trace level.

Logging at this level is disabled if any of the following features are present: max_level_off, max_level_error, max_level_warn, max_level_info, or max_level_debug.

When building in release mode (i.e., without the debug_assertions option), logging at this level is also disabled if any of the following features are present: release_max_level_off, release_max_level_error, release_max_level_warn, release_max_level_info, or release_max_level_debug.

Examples

let pos = Position { x: 3.234, y: -1.223 };

trace!("Position is: x: {}, y: {}", pos.x, pos.y);
trace!(target: "app_events", "x is {} and y is {}",
       if pos.x >= 0.0 { "positive" } else { "negative" },
       if pos.y >= 0.0 { "positive" } else { "negative" });