take Events
open override fun takeEvents(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): List<ILoggingEvent>
Content copied to clipboard
Removes all currently-collected log events and returns those that match the requested criteria.
open override fun takeEvents(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?, consumeUnmatchedLogs: Boolean): List<ILoggingEvent>
Content copied to clipboard
Takes all matching events, optionally leaving unmatched logs in this collector.