Macro log::info [] [src]

macro_rules! info {
    ($($arg:tt)*) => { ... };
}
🔬 This is a nightly-only experimental API. (rustc_private)

use the crates.io log library instead

A convenience macro for logging at the info log level.

Examples

#[macro_use] extern crate log;

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

Assumes the binary is main:

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