macro_rules! warn {
($($t:tt)*) => { ... };
}Expand description
Prints a warning 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 warn! macro:
use prettylogger::warn;
let name = String::from("world");
warn!("Hello, {name}!");