A LogSink implementation designed for testing purposes. It stores all emitted LogEvents in an in-memory list for verification.
The list of events captured by this sink.
Clears all captured events.
Emits a log event to the output destination.
Flushes any buffered log events. Called automatically before a FATAL log throws.
Checks if any event with the specified level was captured.
Returns the most recently captured event, or null if no events have been captured.
Returns a list of messages for all captured events with the specified level.