[][src]Macro ckb_logger::error_target

macro_rules! error_target {
    ($target:expr, $( $args:tt )*) => { ... };
}

Logs a message at the error 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 error! which just logs using the default target.

Examples

use ckb_logger::error_target;

let (err_info, port) = ("No connection", 22);

error_target!("app_events", "App Error: {}, Port: {}", err_info, port);