macro_rules! info {
(target: $target:expr, $($arg:tt)+) => { ... };
($($arg:tt)+) => { ... };
}
Available on crate feature
dep_log
only.Expand description
log
Logs a message at the indicated level.
Re-exported from the log
crate
.
Logs a message at the info level.
§Examples
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", "Successful connection, port: {}, speed: {}",
conn_info.port, conn_info.speed);