Package ch.qos.logback.classic.boolex
Class GEventEvaluator
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.boolex.EventEvaluatorBase<ILoggingEvent>
-
- ch.qos.logback.classic.boolex.GEventEvaluator
-
- All Implemented Interfaces:
EventEvaluator<ILoggingEvent>
,ContextAware
,LifeCycle
public class GEventEvaluator extends EventEvaluatorBase<ILoggingEvent>
-
-
Constructor Summary
Constructors Constructor Description GEventEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class ch.qos.logback.core.boolex.EventEvaluatorBase
getName, isStarted, setName, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
getExpression
public java.lang.String getExpression()
-
setExpression
public void setExpression(java.lang.String expression)
-
start
public void start()
- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classEventEvaluatorBase<ILoggingEvent>
-
evaluate
public boolean evaluate(ILoggingEvent event) throws java.lang.NullPointerException, EvaluationException
Description copied from interface:EventEvaluator
Evaluates whether the event passed as parameter matches some user-specified criteria.The
Evaluator
is 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:
java.lang.NullPointerException
- can be thrown in presence of null valuesEvaluationException
- may be thrown during faulty evaluation
-
-