Skip to main content

r_debug_log

Macro r_debug_log 

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

Dispatches a formatted debug log message to the global logger.

This macro functions identically to r_log!, but messages logged with this macro are strictly flagged as debug messages. The visibility of these messages depends on the configured LogSinks.

Specifically, the default TerminalSink will ignore and hide these messages when the application is compiled in release mode (i.e., not(debug_assertions)). However, the default FileSink will always record them, regardless of the build profile, ensuring debug trails are kept in the logs without cluttering the user’s terminal.

§Arguments

  • $level - The severity of the log, provided as a LogLevel variant.
  • $arg - A format string and its arguments, following standard std::fmt syntax.