rusty-man/tests/snapshots/output__1.41.1_html_macro_log_debug.snap
Robin Krahl 601ec251f8
Add support for multiple formats to test cases
This patch adds support for multiple rustdoc output formats to the test
suite.  This is a preparation for adding support for rustdoc’s JSON
output.
2021-06-06 18:58:35 +02:00

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);