Trait woodpecker::Record
[−]
[src]
pub trait Record: Send + Sync { fn level(&self) -> LogLevel; fn module(&self) -> &'static str; fn file(&self) -> &'static str; fn line(&self) -> u32; fn ts(&self) -> Timespec; fn msg(&self) -> Arc<String>; fn formatted(&self) -> Arc<String>; fn ts_utc(&self) -> Arc<DateTime<UTC>>; }
Log record that holds information where log was recorded and the message details.
Required Methods
fn level(&self) -> LogLevel
Log level of the record.
fn module(&self) -> &'static str
Module path.
fn file(&self) -> &'static str
File path.
fn line(&self) -> u32
Line number.
fn ts(&self) -> Timespec
Timestamp.
fn msg(&self) -> Arc<String>
Returns user log message as a formatted string.
fn formatted(&self) -> Arc<String>
Returns record formatted as a string using given formatter.
fn ts_utc(&self) -> Arc<DateTime<UTC>>
Returns timestamp in UTC.