WispQueuedLogCollector

class WispQueuedLogCollector : LogCollector

Functions

Link copied to clipboard
fun shutDown()
Link copied to clipboard
fun startUp()
Link copied to clipboard
open override fun takeEvent(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): ILoggingEvent

Waits until a matching event is logged, and returns it. The returned event and all preceding events are also removed.

open override fun takeEvent(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?, consumeUnmatchedLogs: Boolean): ILoggingEvent

Take the first matching event, optionally leaving unmatched logs in this collector.

Link copied to clipboard
open override fun takeEvents(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): List<ILoggingEvent>

Removes all currently-collected log events and returns those that match the requested criteria.

open override fun takeEvents(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?, consumeUnmatchedLogs: Boolean): List<ILoggingEvent>

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

Link copied to clipboard
open override fun takeMessage(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): String

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

Takes the first matching message, optionally leaving unmatched logs in this collector.

Link copied to clipboard
open override fun takeMessages(loggerClass: KClass<*>?, minLevel: Level, pattern: Regex?): List<String>

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>

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