Expand description
Abstractions for creating fmt::Write
instances.
Structs§
- Mutex
Guard Writer - A type implementing
fmt::Write
for aMutexGuard
where the type inside theMutex
implementsfmt::Write
. - NoWriter
- OrElse
- Combines a
MakeWriter
that returns anOption
of anotherMakeWriter
, so that the secondMakeWriter
is used when the firstMakeWriter
returnsNone
. - Tee
- Combines two types implementing
MakeWriter
(ormycelium_util::fmt::Write
) to produce a writer that writes to bothMakeWriter
’s returned writers. - With
Filter - A
MakeWriter
combinator that wraps aMakeWriter
with a predicate for span and eventMetadata
, so that theMakeWriter::make_writer_for
method returnsSome
when the predicate returnstrue
, andNone
when the predicate returnsfalse
. - With
Line Len - With
MaxLevel - A
MakeWriter
combinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosityLevel
. - With
MinLevel - A
MakeWriter
combinator that only returns an enabled writer for spans and events with metadata at or above a specified verbosityLevel
.
Enums§
- Either
Writer - A writer that is one of two types implementing
fmt::Write
.
Traits§
- Make
Writer - A type that can create
fmt::Write
instances. - Make
Writer Ext - Extension trait adding combinators for working with types implementing
MakeWriter
.