pub struct Pretty { /* private fields */ }
This is supported on crate features
fmt
and std
only.Expand description
An excessively pretty, human-readable event formatter.
Implementations
👎 Deprecated since 0.3.6: all formatters now support configurable source locations. Use Format::with_source_location
instead.
👎 Deprecated since 0.3.6:
all formatters now support configurable source locations. Use Format::with_source_location
instead.
Sets whether the event’s source code location is displayed.
This defaults to true
.
Trait Implementations
Format the provided fields
to the provided Writer
, returning a result.
fn add_fields(
&self,
current: &'writer mut FormattedFields<Self>,
fields: &Record<'_>
) -> Result
fn add_fields(
&self,
current: &'writer mut FormattedFields<Self>,
fields: &Record<'_>
) -> Result
Record additional field(s) on an existing span. Read more
Auto Trait Implementations
impl RefUnwindSafe for Pretty
impl UnwindSafe for Pretty
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more