Summary
Capture log outputs until the item is disposed
- Assembly
- Rocket
.Surgery .Extensions .Testing .dll - Namespace
- Rocket
.Surgery .Extensions .Testing - Containing Type
- LoggerTest
Syntax
protected IDisposable CaptureLogs(Func<LogEvent, bool> filterLogs, out IEnumerable<LogEvent> logs)
Parameters
Name | Type | Description |
---|---|---|
filterLogs | Func |
A delegate to filter the logs to only a subset of the expected logs |
logs | IEnumerable |
The output logs |
Return Value
Type | Description |
---|---|
IDisposable |