macro_rules! error { ($( $args:tt )*) => { ... }; }
Expand description
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);