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

public Class OnErrorEvaluator

extends EventEvaluatorBase<ILoggingEvent>
Class Inheritance
Imports
ch.qos.logback.classic.Level, ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.boolex.EvaluationException, .EventEvaluatorBase

Evaluates to true when the logging event passed as parameter has level ERROR or higher.
Author
Ceki Gülcü

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
evaluate(ILoggingEvent
The event to evaluate
event
)

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

Return true if event passed as parameter has level ERROR or higher, returns false otherwise.
Inherited from ch.qos.logback.core.boolex.EventEvaluatorBase:
getNameisStartedsetNamestartstop

Constructor Detail

OnErrorEvaluatorback to summary
public OnErrorEvaluator()

Method Detail

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 has level ERROR or higher, returns false otherwise.

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