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