Struct slog::Record
[−]
[src]
pub struct Record<'a> { // some fields omitted }
Logging record
Methods
impl<'a> Record<'a>
[src]
fn new(level: Level, msg: &'a Message, file: &'static str, line: u32, module: &'static str, target: &'a str, values: &'a [BorrowedKeyValue<'a>]) -> Self
Create a new Record
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) -> &'static str
Get file path
fn target(&self) -> &str
Get target
Mostly for backward compatibility with log
fn module(&self) -> &'static str
Get module
fn values(&self) -> &'a [BorrowedKeyValue<'a>]
Record value-key pairs