Struct slog_term::CompactFormat [] [src]

pub struct CompactFormat<D> where
    D: Decorator
{ /* fields omitted */ }

Compact terminal-output formatting Drain

Note: Compact logging format is not Sync (thread-safe) and needs to be synchronized externally, as current output depends on the previous one.

Put it into a std::sync::Mutex or slog_async::Async worker-thread to serialize accesses to it.

Methods

impl<D> CompactFormat<D> where
    D: Decorator
[src]

[src]

New CompactFormatBuilder

Trait Implementations

impl<D> Drain for CompactFormat<D> where
    D: Decorator
[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]

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

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See 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<D> Send for CompactFormat<D> where
    D: Send

impl<D> !Sync for CompactFormat<D>