davidbarsky / tracing-tree

Apache License 2.0
128 stars 31 forks source link

Writing to stderr #9

Closed flodiebold closed 4 years ago

flodiebold commented 4 years ago

I think it'd be great to use tracing-tree in rust-analyzer (if only to display Chalk logs), but that's not possible as long as it writes to stdout (that's reserved for LSP communication). Could it just write to stderr instead, or alternatively be configurable?

davidbarsky commented 4 years ago

I can switch it to stderr and possibly introduce the MakeWriter from tracing-subscriber trait so this is customizable. Won't take much effort on my end; hold on.