macro_rules! TraceStep {
($($arg:tt)*) => { ... };
}Expand description
Logs a checkpoint message at TRACE level (for “every step” tracing).
This macro provides a low-intrusion way to trace execution flow through the application startup and shutdown sequences. It expands to a single trace!() call which incurs zero overhead when TRACE logging is disabled.
§Example
ⓘ
TraceStep!("[Boot] [Runtime] Building Tokio runtime...");
TraceStep!("[Boot] [Setup] Configuration loaded: {}", ConfigPath);The macro accepts the same format arguments as the standard log!() macro:
- A literal format string
- Optional comma-separated values for format placeholders