Added a MakeWriter parameter to HierarchicalLayer, which allows for customizing the destination out the printed output. Note that ansi-handling isn't handled automatically with MakeWriter, as a file destination might require the caller to disable ansi printing themselves.
Re-organized lib.rs; there's now a dedicated format module that handles most of the pretty-printing.
Few changes:
MakeWriter
parameter toHierarchicalLayer
, which allows for customizing the destination out the printed output. Note that ansi-handling isn't handled automatically withMakeWriter
, as a file destination might require the caller to disable ansi printing themselves.format
module that handles most of the pretty-printing.stderr
example (borrowed from https://github.com/tokio-rs/tracing/blob/master/examples/examples/attrs-args.rs), which demonstrates how to customize the output destination.tracing-subscriber
.Resolves #9
cc: @flodiebold