Struct slog::format::Terminal
[−]
[src]
pub struct Terminal {
// some fields omitted
}Terminal formatting with optional color support
Methods
impl Terminal[src]
fn colored() -> Self
New Terminal format that prints using color
fn plain() -> Self
New Terminal format that prints without using color
Trait Implementations
impl Format for Terminal[src]
fn format(&self, info: &RecordInfo, logger_values: &[OwnedKeyValue], values: &[BorrowedKeyValue]) -> String
Format one logging record into String