Skip to main content

msg_debug

Macro msg_debug 

Source
macro_rules! msg_debug {
    ($msg:expr) => { ... };
}
Expand description

Logs the message with the 🔍 prefix in debug mode; silent otherwise.

use kasl::msg_debug;

let task_id = 42;
msg_debug!(format!("Processing task with ID: {}", task_id));
use kasl::msg_debug;

let old_state = "Active";
let new_state = "InPause";
msg_debug!(format!("State transition: {:?} -> {:?}", old_state, new_state));