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