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.


impl<'a> Record<'a>

Get a log record message

Get record logging level

Get line number

Get error column

Get file path

Get target

Mostly for backward compatibility with log

Get module

Get function

Get Record's key-value pairs