ckb_logger

Macro warn_target

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

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

ยงExamples

use ckb_logger::warn_target;

let warn_description = "Invalid Input";

warn_target!("input_events", "App received warning: {}", warn_description);