Skip to content

tracing-tree 0.1.3

Compare
Choose a tag to compare
@davidbarsky davidbarsky released this 11 Jul 21:25
5081bf0

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 to HierarchicalLayer, which enables customization of the destination of the printed output. Note that ansi handling isn't handled automatically with a MakeWriter. A non-stdout, non-stderr destination might require the user to disable ansi through HierarchicalLayer::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.