Class StubEventEvaluator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.boolex.EventEvaluatorBase<ILoggingEvent>
ch.qos.logback.classic.boolex.StubEventEvaluator
- All Implemented Interfaces:
EventEvaluator<ILoggingEvent>, ContextAware, LifeCycle
-
Field Summary
FieldsFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatcher(Matcher matcher) booleanevaluate(ILoggingEvent event) Evaluates whether the event passed as parameter matches some user-specified criteria.voidsetExpression(String expression) voidstart()Methods inherited from class EventEvaluatorBase
getName, isStarted, setName, stopMethods 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
-
Field Details
-
MSG_0
-
MSG_1
-
MSG_2
-
matcherList
-
-
Constructor Details
-
StubEventEvaluator
public StubEventEvaluator()
-
-
Method Details
-
start
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classEventEvaluatorBase<ILoggingEvent>
-
evaluate
Description copied from interface:EventEvaluatorEvaluates whether the event passed as parameter matches some user-specified criteria.The
Evaluatoris free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.- 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
-
getExpression
-
setExpression
-
addMatcher
-