macro_rules! fatalf_if {
($condition:expr, $($args:expr),* $(,)?) => { ... };
}Expand description
Emit a fatal level log message using printf format string semantics if
condition is true.
Note: fatalf only emits a log message and does not cause a panic!()
use log_if::fatalf_if;
const LOG_FACTS: bool = true;
fatalf_if!(LOG_FACTS, "Log Fact: All out of log facts! Timber!");