Module writer

Source
Expand description

Abstractions for creating fmt::Write instances.

Structs§

MutexGuardWriter
A type implementing fmt::Write for a MutexGuard where the type inside the Mutex implements fmt::Write.
NoWriter
OrElse
Combines a MakeWriter that returns an Option of another MakeWriter, so that the second MakeWriter is used when the first MakeWriter returns None.
Tee
Combines two types implementing MakeWriter (or mycelium_util::fmt::Write) to produce a writer that writes to both MakeWriter’s returned writers.
WithFilter
A MakeWriter combinator that wraps a MakeWriter with a predicate for span and event Metadata, so that the MakeWriter::make_writer_for method returns Some when the predicate returns true, and None when the predicate returns false.
WithLineLen
WithMaxLevel
A MakeWriter combinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosity Level.
WithMinLevel
A MakeWriter combinator that only returns an enabled writer for spans and events with metadata at or above a specified verbosity Level.

Enums§

EitherWriter
A writer that is one of two types implementing fmt::Write.

Traits§

MakeWriter
A type that can create fmt::Write instances.
MakeWriterExt
Extension trait adding combinators for working with types implementing MakeWriter.

Functions§

none