Structsยง
- Tracing
Collector TracingCollectorcreates 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.