ckb_logger

Macro info_target

Source
macro_rules! info_target {
    ($target:expr, $( $args:tt )*) => { ... };
}
Expand description

Logs a message at the info level using the specified target.

This macro logs the message using the specified target. In the most scenarios, the log message should just use the default target, which is the module path of the location of the log request. See info! which just logs using the default target.

ยงExamples

use ckb_logger::info_target;

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

info_target!("connection_events", "Successful connection, port: {}, speed: {}",
      conn_info.port, conn_info.speed);