2020-07-27 12:49:51 +00:00
|
|
|
---
|
|
|
|
source: tests/output.rs
|
2020-09-11 16:14:19 +00:00
|
|
|
expression: "get_stdout(path, &[item])"
|
2020-07-27 12:49:51 +00:00
|
|
|
---
|
|
|
|
log Macro log::debug rusty-man
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
macro_rules! debug {
|
|
|
|
(target: $target:expr, $($arg:tt)+) => { ... };
|
|
|
|
($($arg:tt)+) => { ... };
|
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
Logs a message at the debug level.
|
|
|
|
|
|
|
|
# Examples
|
|
|
|
|
2020-09-11 16:14:19 +00:00
|
|
|
`use log::debug;
|
|
|
|
# fn main() {
|
|
|
|
# struct Position { x: f32, y: f32 }
|
2020-07-27 12:49:51 +00:00
|
|
|
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);
|
2020-09-11 16:14:19 +00:00
|
|
|
# }
|
|
|
|
`
|
2020-07-27 12:49:51 +00:00
|
|
|
|
|
|
|
|