[][src]Macro itm_logger::info

macro_rules! info {
    (target: $target:expr, $($arg:tt)+) => { ... };
    ($($arg:tt)+) => { ... };
}

Re-export of log::info if logging feature is enabled, stub if not Logs a message at the info level.

Examples

This code runs with edition 2018
use log::info;

let conn_info = Connection { port: 40, speed: 3.20 };

info!("Connected to port {} at {} Mb/s", conn_info.port, conn_info.speed);
info!(target: "connection_events", "Successfull connection, port: {}, speed: {}",
      conn_info.port, conn_info.speed);