Struct slog_json::Json [] [src]

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

Json Drain

Each record will be printed as a Json map to a given io

Methods

impl<W> Json<W> where W: Write
[src]

New Json Drain with default key-value pairs added

Build custom Json Drain

Trait Implementations

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

Type returned by this drain Read more

Type of potential errors that can be returned by this Drain

Handle one logging statement (Record) Read more

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

Filter logging records passed to Drain Read more

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

Map logging errors returned by this drain Read more

Ignore results returned by this drain Read more

Make Self panic when returning any errors Read more