macro_rules! criticalf_if {
($condition:expr, $($args:expr),* $(,)?) => { ... };
}Expand description
Emit a critical level log message using printf format string semantics if condition
is true.
use log_if::criticalf_if;
const LOG_FACTS: bool = true;
criticalf_if!(
LOG_FACTS,
"Log Fact: Until the %dth century, all ships' masts were made from a single log.",
19);