Mountain/Binary/Debug/TraceLog.rs
1// TraceLog — debug tracing macro for fine-grained execution step tracking.
2
3/// Logs a checkpoint message at TRACE level (for "every step" tracing).
4///
5/// This macro provides a low-intrusion way to trace execution flow through
6/// the application startup and shutdown sequences. It expands to a single
7/// dev_log!("lifecycle", ) call which incurs zero overhead when TRACE logging
8/// is disabled.
9///
10/// # Example
11///
12/// ```rust,ignore
13/// TraceStep!("[Boot] [Runtime] Building Tokio runtime...");
14/// TraceStep!("[Boot] [Setup] Configuration loaded: {}", ConfigPath);
15/// ```
16#[macro_export]
17macro_rules! TraceStep {
18 ($($arg:tt)*) => {{
19 dev_log!("lifecycle", $($arg)*);
20 }};
21}