takeEvents

abstract fun takeEvents(loggerClass: KClass<*>? = null, minLevel: Level = Level.INFO, pattern: Regex? = null): List<ILoggingEvent>

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>

Takes all matching events, optionally leaving unmatched logs in this collector.