macro_rules! info_if {
($condition:expr, $($args:expr),* $(,)?) => { ... };
}Expand description
Emit an info level log message using core:fmt format string semantics if condition is true.
use log_if::info_if;
const LOG_FACTS: bool = true;
info_if!(
LOG_FACTS,
"Log Fact: The American president Abraham Lincoln (born {:x}) once lived in a log cabin.",
0x1809 as u32);