Macro crit

Source
macro_rules! crit {
    ($($fmt:expr),+) => { ... };
}
Expand description

Logs critical messages based on the defined logging level.

This macro evaluates whether the current logging level is at least 1 and, if so, prints a formatted critical log message to standard error. The message is prefixed with an indentation from a thread-local storage followed by the formatted critical prefix in bold red. The message content is then followed by the related source file and line number of the log statement for easier debugging and tracing. The formatting allows developers to have an immediate visual indication of a critical logging event in their output.