macro_rules! macro_trace_log {
($time:expr, $component:expr, $description:expr) => { ... };
}
Expand description
This macro creates a TRACE
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_trace_log, macro_log};
use rlg::log_level::LogLevel;
use rlg::log_format::LogFormat;
let log = macro_trace_log!("2024-08-29T12:00:00Z", "Auth", "Tracing user activity");
Usage: let log = macro_trace_log!(time, component, description); Macro for trace log with default session id and format