Struct slog::Duplicate [] [src]

pub struct Duplicate<D1: Drain, D2: Drain>(pub D1, pub D2);

Drain duplicating records into two other Drains

Can be nested for more than two outputs.

Methods

impl<D1: Drain, D2: Drain> Duplicate<D1, D2>
[src]

Create Duplicate

Trait Implementations

impl<D1: Drain, D2: Drain> Drain for Duplicate<D1, D2>
[src]

Type returned by this drain Read more

Type of potential errors that can be returned by this Drain

Handle one logging statement (Record) Read more

Pass Drain through a closure, eg. to wrap into another Drain. Read more

Filter logging records passed to Drain Read more

Filter logging records passed to Drain (by level) Read more

Map logging errors returned by this drain Read more

Ignore results returned by this drain Read more