log::info! [] [src]

macro_rules! info {
    ($($arg:tt)*) => { ... };
}
Unstable (rustc_private)

: use the crates.io log library instead

A convenience macro for logging at the info log level.

Examples

#![feature(rustc_private)] #[macro_use] extern crate log; fn main() { let ret = 3; info!("this function is about to return: {}", ret); }
#[macro_use] extern crate log;

fn main() {
    let ret = 3;
    info!("this function is about to return: {}", ret);
}

Assumes the binary is main:

$ RUST_LOG=info ./main
INFO:main: this function is about to return: 3