Macro spdlog::prelude::warn

source ·
macro_rules! warn {
    (logger: $logger:expr, $($arg:tt)+) => { ... };
    ($($arg:tt)+) => { ... };
}
Expand description

Logs a message at the warn level.

§Examples

use spdlog::warn;

let warn_description = "Invalid Input";

warn!("Warning! {}!", warn_description);
warn!(logger: input_events, "App received warning: {}", warn_description);