Struct slog_term::Format [] [src]

pub struct Format {
    // some fields omitted
}

Format formatting with optional color support

Methods

impl Format
[src]

fn colored() -> Self

New Format format that prints using color

fn plain() -> Self

New Format format that prints without using color

Trait Implementations

impl SlogFormat for Format
[src]

fn format(&self, io: &mut Write, info: &RecordInfo, logger_values: &OwnedKeyValueNode) -> Result<()>

Format one logging record and write into io