warning

Macro warning 

Source
macro_rules! warning {
    ($($arg:tt)+) => { ... };
}
Expand description

Log a warning message using format string syntax

ยงExamples

use nonblocking_logger::{warning, warning_with, Logger};

fn main() {
    let threshold = 80;
     
    // Using global logger
    warning!("CPU usage is {}%", threshold);
     
    // Using specific logger
    let logger = Logger::new().stdout();
    warning_with!(logger, "CPU usage is {}%", threshold);
}