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

Log level of the record.

Module path.

File path.

Line number.

Timestamp.

Returns user log message as a formatted string.

Returns record formatted as a string using given formatter.

Returns timestamp in UTC.

Implementors