Module capture_test_logs

Source
Available on crate feature test-util only.
Expand description

Utility for capturing and displaying logs during a unit test.

Structs§

LogCaptureGuard
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.