Macro log::debug [] [src]

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

Logs a message at the debug level.

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

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, or release_max_level_info.

Examples

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

debug!("New position: x: {}, y: {}", pos.x, pos.y);
debug!(target: "app_events", "New position: x: {}, y: {}", pos.x, pos.y);