Crate tracing_collector
source ·Structs
TracingCollector
creates a tracing subscriber that collects a copy of all traces into a buffer.
These traces can be retrieved by calling its Display implementation, i.e. calling log.to_string()
or format!("{log}")
.
This is useful for testing with insta snapshots.