Struct slog::Record [] [src]

pub struct Record<'a> { /* fields omitted */ }

One logging record

Corresponds to one logging statement like info!(...) and carries all it's data: eg. message, key-values, key-values of Logger used to execute it.

Record is passed to Drain associated with a given logger hierarchy.

Methods

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

[src]

Get a log record message

[src]

Get record logging level

[src]

Get line number

[src]

Get error column

[src]

Get file path

[src]

Get target

Mostly for backward compatibility with log

[src]

Get module

[src]

Get function

[src]

Get Record's key-value pairs