rlg

Macro macro_debug_log

Source
macro_rules! macro_debug_log {
    ($log:expr) => { ... };
}
Expand description

This macro conditionally logs a debug message if the debug_enabled feature flag is set.

§Parameters

  • log: The log entry to be conditionally logged.

§Example

use rlg::macro_info_log;
use rlg::macro_debug_log;
use rlg::macro_print_log;
let log = macro_info_log!("2022-01-01", "app", "message");
macro_debug_log!(log);

Usage: macro_debug_log!(log); Conditional debug logging based on feature flag