tracing-tree 0.1.3
Hello! Here are a few changes to tracing-tree-0.1.3
. The latest release is available on crates.io.
- Added a
tracing_subscriber::fmt::MakeWriter
parameter toHierarchicalLayer
, which enables customization of the destination of the printed output. Note that ansi handling isn't handled automatically with aMakeWriter
. A non-stdout, non-stderr destination might require the user to disable ansi throughHierarchicalLayer::with_ansi
themselves. - Re-organized
lib.rs
. There is now a dedicated format module that handles most of the pretty-printing. - Added a Fibonacci number printing example that demonstrates how to use
MakeWriter
. - Reduce the number of required features of the
tracing-subscriber
dependency.
I expect we'll cut a breaking release of tracing-tree
in a few weeks. This breaking change is necessary to support a revised MakeWriter
trait that addresses some shortcomings in the current MakeWriter
API. Most users of tracing-tree
should be unaffected.