25 lines
645 B
Plaintext
25 lines
645 B
Plaintext
|
---
|
||
|
source: tests/output.rs
|
||
|
expression: "get_stdout(&[item])"
|
||
|
---
|
||
|
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
|
||
|
|
||
|
ⓘThis code runs with edition 2018
|
||
|
use log::debug;
|
||
|
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);
|
||
|
|
||
|
|