LoggerTest.

CaptureLogs(Func<LogEvent, bool>, IEnumerable<LogEvent>) Method

Summary

Capture log outputs until the item is disposed

Syntax

protected IDisposable CaptureLogs(Func<LogEvent, bool> filterLogs, out IEnumerable<LogEvent> logs)

Parameters

Name Type Description
filterLogs Func<LogEvent, bool> A delegate to filter the logs to only a subset of the expected logs
logs IEnumerable<LogEvent> The output logs

Return Value

Type Description
IDisposable