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);