LogFilter

open class LogFilter(result: FilterResult = FilterResult.NEUTRAL, filteredStrings: Array<String>) : AbstractFilter

Representation of a LogFilter

Parameters

result

The result to use if the filter matches

filteredStrings

The strings that a message must contain to be filtered

Constructors

Link copied to clipboard
constructor(result: FilterResult = FilterResult.NEUTRAL, filteredStrings: Array<String>)

Properties

Link copied to clipboard

Extra requirements for a string filter to be matched

Link copied to clipboard
var state: LifeCycle.State

Functions

Link copied to clipboard
open fun filter(logger: Logger, level: Level, marker: Marker, msg: String): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any, p5: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any, p5: Any, p6: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any, p5: Any, p6: Any, p7: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any, p5: Any, p6: Any, p7: Any, p8: Any): Filter.Result
open override fun filter(logger: Logger, level: Level, marker: Marker, msg: String, p0: Any, p1: Any, p2: Any, p3: Any, p4: Any, p5: Any, p6: Any, p7: Any, p8: Any, p9: Any): Filter.Result
open override fun filter(event: LogEvent?): Filter.Result
open override fun filter(logger: Logger?, level: Level?, marker: Marker?, msg: Any, t: Throwable?): Filter.Result
open override fun filter(logger: Logger?, level: Level?, marker: Marker?, msg: String?, vararg params: Any?): Filter.Result
open override fun filter(logger: Logger?, level: Level?, marker: Marker?, msg: Message, t: Throwable?): Filter.Result
Link copied to clipboard
override fun getOnMatch(): Filter.Result
Link copied to clipboard
override fun getOnMismatch(): Filter.Result
Link copied to clipboard
open override fun initialize()
Link copied to clipboard
Link copied to clipboard
open override fun isStarted(): Boolean
Link copied to clipboard
open fun isStarting(): Boolean
Link copied to clipboard
open override fun isStopped(): Boolean
Link copied to clipboard
open fun isStopping(): Boolean
Link copied to clipboard
fun register()

Registers this log filter to work with the root logger.

Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()
open override fun stop(timeout: Long, timeUnit: TimeUnit): Boolean
Link copied to clipboard
open override fun toString(): String