Struct slog_envlogger::EnvLogger [] [src]

pub struct EnvLogger<T: Drain> {
    // some fields omitted
}

EnvLogger drain.

Methods

impl<T: Drain> EnvLogger<T>
[src]

fn new(d: T) -> Self

fn filter(&self) -> FilterLevel

Trait Implementations

impl<T: Drain> Drain for EnvLogger<T>
[src]

fn log(&self, buf: &mut Vec<u8>, info: &RecordInfo, val: &OwnedKeyValueNode) -> Result<()>

Write one logging record As an optimization (avoiding allocations), loggers are responsible for providing a byte buffer, that Drain can use for their own needs. Read more