Package ch.qos.logback.core.filter
Class EvaluatorFilter<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.filter.Filter<E>
-
- ch.qos.logback.core.filter.AbstractMatcherFilter<E>
-
- ch.qos.logback.core.filter.EvaluatorFilter<E>
-
- All Implemented Interfaces:
ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class EvaluatorFilter<E> extends AbstractMatcherFilter<E>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.The value of theAbstractMatcherFilter.onMatch
andAbstractMatcherFilter.onMismatch
attributes is set toFilterReply.NEUTRAL
, so that a badly configured evaluator filter does not disturb the functioning of the filter chain.It is expected that one of the two attributes will have its value changed to
FilterReply.ACCEPT
orFilterReply.DENY
. That way, it is possible to decide if a given result must be returned after the evaluation either failed or succeeded.For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html
-
-
Constructor Summary
Constructors Constructor Description EvaluatorFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilterReply
decide(E event)
Deprecated.If the decision is
, then the event will be dropped.FilterReply.DENY
EventEvaluator<E>
getEvaluator()
Deprecated.void
setEvaluator(EventEvaluator<E> evaluator)
Deprecated.void
start()
Deprecated.-
Methods inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter
getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Method Detail
-
start
public void start()
Deprecated.
-
getEvaluator
public EventEvaluator<E> getEvaluator()
Deprecated.
-
setEvaluator
public void setEvaluator(EventEvaluator<E> evaluator)
Deprecated.
-
decide
public FilterReply decide(E event)
Deprecated.Description copied from class:Filter
If the decision is
, then the event will be dropped. If the decision isFilterReply.DENY
, then the next filter, if any, will be invoked. If the decision isFilterReply.NEUTRAL
then the event will be logged without consulting with other filters in the chain.FilterReply.ACCEPT
-
-