-
Hi, What I had in mind roughly, would be Is there some pre-made solution for this, or something that behaves similarly? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't know of any existing implementation of something that does this, but it definitely sounds like it would be useful! If you're interested in writing a crate for this, we'd love to add it in the list of If I was going to write an implementation of this, I would probably consider using the |
Beta Was this translation helpful? Give feedback.
I don't know of any existing implementation of something that does this, but it definitely sounds like it would be useful! If you're interested in writing a crate for this, we'd love to add it in the list of
tracing
ecosystem crates in the documentation.If I was going to write an implementation of this, I would probably consider using the
MakeWriter::make_writer_for
method in atracing_subscriber::fmt::MakeWriter
implementation. That method is designed to allow aMakeWriter
implementation to return different I/O writers based on an event'sMetadata
(including its level), so it can be used for sending different levels to different outputs. If you implemented aBuildScriptWriter
or somethi…