Macro info

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

Prints an info message 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 info! macro:

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