Package ch.qos.logback.classic.turbo
Class MDCFilter
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.turbo.TurboFilter
-
- ch.qos.logback.classic.turbo.MatchingFilter
-
- ch.qos.logback.classic.turbo.MDCFilter
-
- All Implemented Interfaces:
ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class MDCFilter extends MatchingFilter
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.This class allows output for a given MDC value.When the given value is identified by this TurboFilter, the reply is based on the OnMatch option. The information is taken from the MDC. For this TurboFilter to work, one must set the key that will be used to access the information in the MDC.
To allow output for the value, set the OnMatch option to ACCEPT. To disable output for the given value, set the OnMatch option to DENY.
By default, values of the OnMatch and OnMisMatch options are set to NEUTRAL.
-
-
Constructor Summary
Constructors Constructor Description MDCFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilterReply
decide(Marker marker, Logger logger, Level level, java.lang.String format, java.lang.Object[] params, java.lang.Throwable t)
Deprecated.Make a decision based on the multiple parameters passed as arguments.void
setMDCKey(java.lang.String MDCKey)
Deprecated.void
setValue(java.lang.String value)
Deprecated.-
Methods inherited from class ch.qos.logback.classic.turbo.MatchingFilter
setOnMatch, setOnMismatch
-
Methods inherited from class ch.qos.logback.classic.turbo.TurboFilter
getName, isStarted, setName, start, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Method Detail
-
decide
public FilterReply decide(Marker marker, Logger logger, Level level, java.lang.String format, java.lang.Object[] params, java.lang.Throwable t)
Deprecated.Description copied from class:TurboFilter
Make a decision based on the multiple parameters passed as arguments. The returned value should be one of
,FilterReply.DENY
, orFilterReply.NEUTRAL
.FilterReply.ACCEPT
- Specified by:
decide
in classTurboFilter
- Returns:
-
setValue
public void setValue(java.lang.String value)
Deprecated.
-
setMDCKey
public void setMDCKey(java.lang.String MDCKey)
Deprecated.
-
-