macro_rules! macro_fatal_log {
($time:expr, $component:expr, $description:expr) => { ... };
}
Expand description
This macro creates a FATAL
level log entry with a default session ID and format.
The session ID is generated randomly and the log format defaults to CLF.
§Parameters
time
: The timestamp of the log entry.component
: The system component that generated the log.description
: A textual description of the log event.
§Example
use rlg::log_level::LogLevel;
use rlg::log_format::LogFormat;
use rlg::{macro_fatal_log, macro_log};
let log = macro_fatal_log!("2024-08-29T12:00:00Z", "System", "Critical failure");
Usage: let log = macro_fatal_log!(time, component, description); Macro for fatal log with default session id and format