Macro fatal

Source
macro_rules! fatal {
    ($($t:tt)*) => { ... };
}
Expand description

Prints a fatal error using the global Logger instance.

Warning! This macro will block if any thread holds write access to the global logger.

§Panics

Panics if the global logger’s lock is poisoned.

§Examples

Using the fatal! macro:

use prettylogger::fatal;
let name = String::from("world");
fatal!("Hello, {name}!");