Macro log

Source
macro_rules! log {
    ($level:expr, $($arg:tt)*) => { ... };
}
Expand description

Macro for logging messages at a specific level.

This is the core logging macro that other macros (debug!, info!, etc.) build upon.

ยงArguments

  • $level - The log level to use
  • $arg - Format string and arguments, similar to format! or println!