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