[][src]Struct slog_logfmt::Logfmt

pub struct Logfmt<W: Write> { /* fields omitted */ }

A drain & formatter for logfmt-formatted messages.

Format

The default format looks like the somewhat-more-human-readable format in https://brandur.org/logfmt#human. You can customize it with the LogfmtBuilder method set_prefix.

Methods

impl<W: Write> Logfmt<W>[src]

pub fn new(io: W) -> LogfmtBuilder<W>[src]

Trait Implementations

impl<W> Drain for Logfmt<W> where
    W: Write
[src]

type Ok = ()

Type returned by this drain Read more

type Err = Error

Type of potential errors that can be returned by this Drain

Auto Trait Implementations

impl<W> !RefUnwindSafe for Logfmt<W>

impl<W> Send for Logfmt<W> where
    W: Send

impl<W> !Sync for Logfmt<W>

impl<W> Unpin for Logfmt<W> where
    W: Unpin

impl<W> UnwindSafe for Logfmt<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.