[][src]Macro ckb_logger::trace_target

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

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

Examples

use ckb_logger::trace_target;

let pos = Position { x: 3.234, y: -1.223 };

trace_target!("app_events", "Position is: x: {}, y: {}", pos.x, pos.y);