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]

[src]

Create Duplicate

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Handle one logging statement (Record) Read more

[src]

Check if messages at the specified log level are enabled for this logger. Read more

[src]

Check if messages at the critical log level are enabled for this logger via is_enabled.

[src]

Check if messages at the error log level are enabled for this logger via is_enabled.

[src]

Check if messages at the warning log level are enabled for this logger via is_enabled.

[src]

Check if messages at the info log level are enabled for this logger via is_enabled.

[src]

Check if messages at the debug log level are enabled for this logger via is_enabled.

[src]

Check if messages at the trace log level are enabled for this logger via is_enabled.

[src]

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

[src]

Filter logging records passed to Drain Read more

[src]

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

[src]

Map logging errors returned by this drain Read more

[src]

Ignore results returned by this drain Read more

[src]

Make Self panic when returning any errors Read more

Auto Trait Implementations

impl<D1, D2> Send for Duplicate<D1, D2> where
    D1: Send,
    D2: Send

impl<D1, D2> Sync for Duplicate<D1, D2> where
    D1: Sync,
    D2: Sync