Macro spdlog::prelude::info

source ·
macro_rules! info {
    (logger: $logger:expr, $($arg:tt)+) => { ... };
    ($($arg:tt)+) => { ... };
}
Expand description

Logs a message at the info level.

§Examples

use spdlog::info;

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

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