[][src]Macro ckb_logger::error

macro_rules! error {
    ($( $args:tt )*) => { ... };
}

Logs a message at the error level using the default target.

This macro logs the message using the default target, the module path of the location of the log request. See error_target! which can override the target.

Examples

use ckb_logger::error;

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

error!("Error: {} on port {}", err_info, port);