Struct slog::logger::RecordInfo [] [src]

pub struct RecordInfo {
    pub ts: DateTime<UTC>,
    pub level: Level,
    pub msg: String,
}

Common information about a logging record

Fields

ts: DateTime<UTC>

Timestamp

level: Level

Logging level

msg: String

Message

Methods

impl RecordInfo
[src]

fn new(level: Level, msg: String) -> Self

Create a new RecordInfo with a current timestamp