tokio-rs / console-gsoc

Google Summer of Code tokio-console prototype
MIT License
12 stars 2 forks source link

subscriber: Support `tracing-subscriber::Layer` #36

Open hawkw opened 5 years ago

hawkw commented 5 years ago

tokio-rs/tracing#136 added a Layer trait to the tracing-subscriber crate. Layer represents a stripped-down version of the Subscriber interface that can be composed with another Subscriber to allow fan-out between multiple methods of consuming tracing data. It would be great if the console subscriber also had a Layer implementation, so that the console can be used in conjunction with other subscribers.

The tracing-subscriber dependency can be feature-flagged, as that crate isn't quite stable yet.