LogMessage

Type Alias LogMessage 

pub type LogMessage<'a> = LogMessage<'a, Transient>;
Expand description

Log message with transient values (supports format_args!).

Aliased Type§

pub struct LogMessage<'a> {
    pub time_unix_nano: u64,
    pub severity: Severity,
    pub body: &'a str,
    pub attributes: &'a [KeyValue<'a, Transient>],
}

Fields§

§time_unix_nano: u64

Timestamp in nanoseconds since Unix epoch (or system start)

§severity: Severity

The severity level of this log message

§body: &'a str

The message body

§attributes: &'a [KeyValue<'a, Transient>]

Key-value attributes providing additional context