[][src]Macro emit::warn

macro_rules! warn {
    (target: $target:expr, $s:expr, $($n:ident: $v:expr),*) => { ... };
    ($s:expr, $($n:ident: $v:expr),*) => { ... };
}

Emit a warning event to the ambient pipeline.

Examples

The example below will be emitted at the emit::LogLevel::Warn level.

This example is not tested
warn!("SQL query took {} ms", elapsed: 7890);