Class OnErrorEvaluator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.boolex.EventEvaluatorBase<ILoggingEvent>
ch.qos.logback.classic.boolex.OnErrorEvaluator
- All Implemented Interfaces:
EventEvaluator<ILoggingEvent>, ContextAware, LifeCycle
Evaluates to true when the logging event passed as parameter has level ERROR
or higher.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ILoggingEvent event) Return true if event passed as parameter has level ERROR or higher, returns false otherwise.Methods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
OnErrorEvaluator
public OnErrorEvaluator()
-
-
Method Details
-
evaluate
Return true if event passed as parameter has level ERROR or higher, returns false otherwise.- Parameters:
event- The event to evaluate- Returns:
- true if there is a match, false otherwise.
- Throws:
NullPointerException- can be thrown in presence of null valuesEvaluationException- may be thrown during faulty evaluation
-