rlg

Macro macro_set_log_format_clf

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

This macro sets the log format to CLF if it is not already defined.

§Parameters

  • log: The log entry whose format is to be set.

§Example

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

Usage: macro_set_log_format_clf!(log); Set log format to CLF if not already defined