log::info!
[-]
[+]
[src]
macro_rules! info { ($($arg:tt)*) => (log!(::log::INFO, $($arg)*)) }
A convenience macro for logging at the info log level.
Example
#[macro_use] extern crate log; fn main() { let ret = 3i; 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