Top Description Fields Constructors Methods
ch.qos.logback.classic.boolex

public Class OnMarkerEvaluator

extends EventEvaluatorBase<ILoggingEvent>
Class Inheritance
Imports
java.util.ArrayList, .List, org.slf4j.Marker, ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.boolex.EvaluationException, .EventEvaluatorBase

Evaluates to true when the logging event passed as parameter contains one of the user-specified markers.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
pack-priv List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addMarker(String markerStr)

public boolean
evaluate(ILoggingEvent
The event to evaluate
event
)

Implements ch.qos.logback.core.boolex.EventEvaluator.evaluate.

Return true if event passed as parameter contains one of the specified user-markers.
Inherited from ch.qos.logback.core.boolex.EventEvaluatorBase:
getNameisStartedsetNamestartstop

Field Detail

markerListback to summary
pack-priv List<String> markerList

Constructor Detail

OnMarkerEvaluatorback to summary
public OnMarkerEvaluator()

Method Detail

addMarkerback to summary
public void addMarker(String markerStr)
evaluateback to summary
public boolean evaluate(ILoggingEvent event) throws NullPointerException, EvaluationException

Implements ch.qos.logback.core.boolex.EventEvaluator.evaluate.

Return true if event passed as parameter contains one of the specified user-markers.

Parameters
event:ILoggingEvent

Doc from ch.qos.logback.core.boolex.EventEvaluator.evaluate.

The event to evaluate

Returns:boolean

Doc from ch.qos.logback.core.boolex.EventEvaluator.evaluate.

true if there is a match, false otherwise.

Exceptions
NullPointerException:

Doc from ch.qos.logback.core.boolex.EventEvaluator.evaluate.

can be thrown in presence of null values

EvaluationException:

Doc from ch.qos.logback.core.boolex.EventEvaluator.evaluate.

may be thrown during faulty evaluation