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]
fn msg(&self) -> Arguments
[src]
Get a log record message
fn level(&self) -> Level
[src]
Get record logging level
fn line(&self) -> u32
[src]
Get line number
fn column(&self) -> u32
[src]
Get error column
fn file(&self) -> &'static str
[src]
Get file path
fn target(&self) -> &str
[src]
Get target
Mostly for backward compatibility with log
fn module(&self) -> &'static str
[src]
Get module
fn function(&self) -> &'static str
[src]
Get function
fn values(&self) -> &'a [BorrowedKeyValue<'a>]
[src]
Get Record's key-value pairs