Module tracing_log::trace_logger
source · 👎Deprecated since 0.1.1: use the
tracing
crate’s “log” feature flag insteadAvailable on crate feature
trace-logger
only.Expand description
A tracing
Subscriber
that uses the log
crate as a backend for
formatting tracing
spans and events.
When a TraceLogger
is set as the current subscriber, it will record
traces by emitting log::Record
s that can be collected by a logger.
Note: This API has been deprecated since version 0.1.1. In order to emit
tracing
events as log
records, the “log” and “log-always” feature
flags on the tracing
crate should be used instead.
Structs
- BuilderDeprecatedConfigures and constructs a
TraceLogger
. - TraceLoggerDeprecatedA
tracing
Subscriber
implementation that logs all recorded trace events.