Module tracing_subscriber::fmt::format
source · Expand description
Formatters for logging tracing
events.
Structs
- Marker for
Format
that indicates that the compact log format should be used. - The default
FormatFields
implementation. - A
FormatFields
implementation that formats fields by calling a function or closure. - Configures what points in the span lifecycle are logged as events.
- A pre-configured event formatter.
- Marker for
Format
that indicates that the verbose log format should be used. - Marker for
Format
that indicates that the verbose JSON log format should be used. - The JSON
FormatFields
implementation. - An excessively pretty, human-readable event formatter.
- An excessively pretty, human-readable
MakeVisitor
implementation.
Traits
- A type that can format a tracing
Event
for afmt::Write
. - A type that can format a set of fields to a
fmt::Write
.
Functions
- Returns a
FormatFields
implementation that formats fields using the provided function or closure. - Returns the default configuration for an [event formatter].
- Returns the default configuration for a JSON [event formatter].