log::macros::warn![src]

macro_rules! warn(
    ($($arg:tt)*) => (log!(::log::WARN, $($arg)*))
)

A convenience macro for logging at the warning log level.

Example

#![feature(phase)] #[phase(plugin, link)] extern crate log; fn main() { let code = 3u; warn!("you may like to know that a process exited with: {}", code); }
#![feature(phase)]
#[phase(plugin, link)] extern crate log;

warn!("you may like to know that a process exited with: {}", code);