|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventEvaluator
An EventEvaluator has the responsibility to evaluate whether a given an event matches a given criteria.
Implementations are free to evaluate the event as they see fit. In particular, the evaluation results may depend on previous events.
Method Summary | |
---|---|
boolean |
evaluate(Object event)
Evaluates whether the event passed as parameter matches this evaluator's matching criteria. |
String |
getName()
Evaluators are named entities. |
void |
setName(String name)
Evaluators are named entities. |
Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
Methods inherited from interface ch.qos.logback.core.spi.LifeCycle |
---|
isStarted, start, stop |
Method Detail |
---|
boolean evaluate(Object event) throws NullPointerException, EvaluationException
The Evaluator
instance is free to evaluate the event as
it pleases. In particular, the evaluation results may depend on
previous events.
event
- The event to evaluate
NullPointerException
- can be thrown in presence of null values
EvaluationException
- Thrown during evaluationString getName()
void setName(String name)
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |