Available on crate feature
test-util
only.Expand description
Utility for capturing and displaying logs during a unit test.
Structs§
- LogCapture
Guard - A guard that resets log capturing upon being dropped.
- Rx
- Receiver for the captured logs.
Functions§
- capture_
test_ logs - Capture logs from this test.
- show_
test_ logs - Enables output of test logs to stdout at trace level by default.