Trait tracing_forest::processor::Processor
source · [−]pub trait Processor: 'static + Sized {
fn process(&self, tree: Tree);
fn into_layer(self) -> TreeLayer<Self> { ... }
}
Expand description
A type that can process trace trees.
Processor
s are responsible for both formatting and writing logs to their
intended destinations. This is typically implemented using
Formatter
,
tracing_subscriber::fmt::MakeWriter
, and std::io::Write
.
This trait is already implemented for
BlockingProcessor
and
AsyncProcessor
.