Expand description
Abstractions for creating fmt::Write instances.
Structs§
- Mutex
Guard Writer - A type implementing
fmt::Writefor aMutexGuardwhere the type inside theMuteximplementsfmt::Write. - NoWriter
- OrElse
- Combines a
MakeWriterthat returns anOptionof anotherMakeWriter, so that the secondMakeWriteris used when the firstMakeWriterreturnsNone. - Tee
- Combines two types implementing
MakeWriter(ormycelium_util::fmt::Write) to produce a writer that writes to bothMakeWriter’s returned writers. - With
Filter - A
MakeWritercombinator that wraps aMakeWriterwith a predicate for span and eventMetadata, so that theMakeWriter::make_writer_formethod returnsSomewhen the predicate returnstrue, andNonewhen the predicate returnsfalse. - With
Line Len - With
MaxLevel - A
MakeWritercombinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosityLevel. - With
MinLevel - A
MakeWritercombinator 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::Writeinstances. - Make
Writer Ext - Extension trait adding combinators for working with types implementing
MakeWriter.