log::warn! [] [src]

macro_rules! warn {
    (target: $target:expr, $($arg:tt)*) => (
        log!(target: $target, $crate::LogLevel::Warn, $($arg)*);
    );
    ($($arg:tt)*) => (
        log!($crate::LogLevel::Warn, $($arg)*);
    )
}

Logs a message at the warn level.

Logging at this level is disabled if any of the following cfgs are present: log_level = "off" or log_level = "error".