Macro debgb2

Source
macro_rules! debgb2 {
    ($fmt:literal, $e:expr) => { ... };
}
Expand description

Expands to a logging and evaluation mechanism.

This macro evaluates an expression, logging detailed debug information if the current logging level is set to 5 or higher. It leverages the project’s logging infrastructure to output a well-formatted message showing the provided format string and its evaluated result, along with the file and line number where the macro is invoked. The macro manipulates an indent level to ensure the logs maintain structured readability through related log invocations. In case the log level condition is not met, it simply evaluates the expression without any additional logging.