macro_rules! macro_info_log {
($time:expr, $component:expr, $description:expr) => { ... };
}
Expand description
This macro creates an INFO
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::macro_info_log;
let log = macro_info_log!("2024-08-29T12:00:00Z", "Auth", "User login");
Usage: let log = macro_info_log!(time, component, description); Macro for info log with default session id and format