Module json_subscriber::fmt
source · Expand description
This module only provides compatibility with tracing-subscriber
. The methods here are just
copies that only use different types for the Subscriber
and SubscriberBuilder
.
Structs§
- A
Layer
that logs JSON formatted representations oftracing
events. - A type that can be used to create a
Subscriber
which collects tracing spans and events and emits them in JSON. - Configures and constructs
Subscriber
s.
Functions§
- Returns a new
SubscriberBuilder
for configuring a json formatting subscriber. - Install a global tracing subscriber that listens for events and filters based on the value of the
RUST_LOG
environment variable. - Returns a new json formatting layer that can be composed with other layers to construct a
Subscriber
. - Install a global tracing subscriber that listens for events and filters based on the value of the
RUST_LOG
environment variable, if one is not already set.