take Message
open override fun takeMessage(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): String
Content copied to clipboard
Waits until a matching event is logged, and returns its message. The returned event and all preceding events are also removed.
open override fun takeMessage(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?, consumeUnmatchedLogs: Boolean): String
Content copied to clipboard
Takes the first matching message, optionally leaving unmatched logs in this collector.