Package ch.qos.logback.classic.turbo
Class MarkerFilter
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.MarkerFilter
- All Implemented Interfaces:
ContextAware,LifeCycle
Checks whether the marker in the event matches the marker specified by the
user.
-
Field Summary
FieldsFields inherited from class ch.qos.logback.classic.turbo.MatchingFilter
onMatch, onMismatchFields inherited from class ch.qos.logback.classic.turbo.TurboFilter
startFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.qos.logback.classic.turbo.MatchingFilter
setOnMatch, setOnMismatchMethods inherited from class ch.qos.logback.classic.turbo.TurboFilter
getName, isStarted, setName, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
markerToMatch
org.slf4j.Marker markerToMatch
-
-
Constructor Details
-
MarkerFilter
public MarkerFilter()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classTurboFilter
-
decide
public FilterReply decide(org.slf4j.Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t) Description copied from class:TurboFilterMake 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:
decidein classTurboFilter- Parameters:
marker-logger-level-format-params-t-- Returns:
-
setMarker
The marker to match in the event.- Parameters:
markerStr-
-