You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
691 B
Plaintext
28 lines
691 B
Plaintext
4 years ago
|
---
|
||
|
source: tests/output.rs
|
||
4 years ago
|
expression: "get_stdout(path, &[item])"
|
||
4 years ago
|
---
|
||
|
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
|
||
|
|
||
4 years ago
|
`use log::debug;
|
||
|
# fn main() {
|
||
|
# struct Position { x: f32, y: f32 }
|
||
4 years ago
|
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);
|
||
4 years ago
|
# }
|
||
|
`
|
||
4 years ago
|
|
||
|
|