macro_rules! debugf_if {
($condition:expr, $($args:expr),* $(,)?) => { ... };
}Expand description
Emit a debug level log message using printf format string semantics if condition
is true.
use log_if::debugf_if;
const LOG_FACTS: bool = true;
debugf_if!(LOG_FACTS, "Log Fact: The American toy Lincoln Logs were inspired by the %s in %s.",
"Imperial Hotel", "Tokyo");