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

pub struct RecordInfo<'a> {
    // some fields omitted
}

Common information about a logging record

Methods

impl<'a> RecordInfo<'a>
[src]

fn new(level: Level, msg: &'a IntoMsg, file: &'a str, line: u32, module: &'a str, values: &'a [BorrowedKeyValue<'a>]) -> Self

Create a new RecordInfo

fn ts(&self) -> DateTime<UTC>

Timestamp

Lazily evaluated timestamp

fn set_ts(&self, ts: DateTime<UTC>)

Set timestamp

fn msg(&self) -> Cow<str>

Get a log record message

fn level(&self) -> Level

Get record logging level

fn line(&self) -> u32

Get line number

fn file(&self) -> &str

Get file path

fn module(&self) -> &str

Get module

fn values(&self) -> &'a [BorrowedKeyValue<'a>]

Record value-key pairs