Struct slog::Fuse [] [src]

pub struct Fuse<D: Drain> { /* fields omitted */ }

Drain panicking on error

Logger requires a root drain to handle all errors (Drain::Error == ()), Fuse will wrap a Drain and panic if it returns any errors.

Note: Drain::Error must implement Display. It's easy to create own Fuse drain if this requirement can't be fulfilled.


impl<D: Drain> Fuse<D>

Create Fuse wrapping given drain

Trait Implementations

impl<D: Drain> Drain for Fuse<D> where D::Error: Display

Type of potential errors returned during logging

Log one logging record Read more