Expand description
This crate allows users to configure output from
tracing in the same way as you would configure the
output of log4rs.
Overview
For a usage example see the examples folder or src/test.rs.
Benchmarks & Results
The takeaway is that the actual appenders are roughly equivalent in
performance. However, when using the tracing macros vs the log macros
the appender performance is roughly 2 orders of magnitude larger.
See for yourself with cargo bench --features tracing-macros
Modules
Structs
The root configuration object containing everything necessary to build a
trace4rs::Handle.The reloadable handle for a
TraceLogger, with this we can modify the
logging configuration at runtime.The
tracing::Subscriber that this crate implements.Enums
An Appender represents a sink where logs can be written.
An enum representing the possible errors encountered.
Functions
Initializes the default
trace4rs handle as the tracing global default.