Struct slog::Duplicate
[−]
[src]
pub struct Duplicate<D1: Drain, D2: Drain> { // some fields omitted }
Drain duplicating records to two sub-drains
Can be nested for more than two outputs.
Methods
impl<D1: Drain, D2: Drain> Duplicate<D1, D2>
[src]
fn new(drain1: D1, drain2: D2) -> Self
Create Duplicate
Trait Implementations
impl<D1: Drain, D2: Drain> Drain for Duplicate<D1, D2>
[src]
type Error = DuplicateError<D1::Error, D2::Error>
Type of potential error returned during logging
fn log(&self, info: &Record, logger_values: &OwnedKeyValueList) -> Result<(), Self::Error>
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