take Message
abstract fun takeMessage(loggerClass: KClass<*>? = null, minLevel: Level = Level.INFO, pattern: Regex? = null): 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.
abstract fun takeMessage(loggerClass: KClass<*>? = null, minLevel: Level = Level.INFO, pattern: Regex? = null, consumeUnmatchedLogs: Boolean = false): String
Content copied to clipboard
Takes the first matching message, optionally leaving unmatched logs in this collector.