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