public class GEventEvaluator extends EventEvaluatorBase<ILoggingEvent>
Constructor and Description |
---|
GEventEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ILoggingEvent event)
Evaluates whether the event passed as parameter matches some user-specified
criteria.
|
java.lang.String |
getExpression() |
void |
setExpression(java.lang.String expression) |
void |
start() |
getName, isStarted, setName, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public java.lang.String getExpression()
public void setExpression(java.lang.String expression)
public void start()
start
in interface LifeCycle
start
in class EventEvaluatorBase<ILoggingEvent>
public boolean evaluate(ILoggingEvent event) throws java.lang.NullPointerException, EvaluationException
EventEvaluator
The Evaluator
is free to evaluate the event as it pleases. In
particular, the evaluation results may depend on previous events.
event
- The event to evaluatejava.lang.NullPointerException
- can be thrown in presence of null valuesEvaluationException
- may be thrown during faulty evaluationCopyright © 2010 - 2020 Adobe. All Rights Reserved