macro_rules! errorf_if {
($condition:expr, $($args:expr),* $(,)?) => { ... };
}Expand description
Emit an error level log message using printf format string semantics if condition
is true.
use log_if::errorf_if;
const LOG_FACTS: bool = true;
errorf_if!(
LOG_FACTS,
"Log Fact: Before saws were invented, the %s was used prepare logs for use.",
"adze");