Structsยง
- Tracing
Collector 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. callinglog.to_string()
orformat!("{log}")
. This is useful for testing with insta snapshots.