aws_smithy_runtime::test_util::capture_test_logs

Function capture_test_logs

source
pub fn capture_test_logs() -> (LogCaptureGuard, Rx)
Available on crate feature test-util only.
Expand description

Capture logs from this test.

The logs will be captured until the DefaultGuard is dropped.

Why use this instead of traced_test? This captures all logs, not just logs produced by the current crate.