java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.turbo.TurboFilter
ch.qos.logback.classic.turbo.DuplicateMessageFilter
- All Implemented Interfaces:
ContextAware,LifeCycle
See
}
for details.
invalid @link
{@link http://logback.qos.ch/manual/filters.html#DuplicateMessageFilter
- Author:
- Ceki Gulcu
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintstatic final intThe default number of allows repetitions.static final intThe default cache size.Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecide(org.slf4j.Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t) Make a decision based on the multiple parameters passed as arguments.intintvoidsetAllowedRepetitions(int allowedRepetitions) The allowed number of repetitions beforevoidsetCacheSize(int cacheSize) voidstart()voidstop()Methods inherited from class ch.qos.logback.classic.turbo.TurboFilter
getName, isStarted, setNameMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
DEFAULT_CACHE_SIZE
-
DEFAULT_ALLOWED_REPETITIONS
The default number of allows repetitions.- See Also:
-
allowedRepetitions
-
cacheSize
-
-
Constructor Details
-
DuplicateMessageFilter
public DuplicateMessageFilter()
-
-
Method Details
-
start
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classTurboFilter
-
stop
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin 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:
-
getAllowedRepetitions
-
setAllowedRepetitions
The allowed number of repetitions before- Parameters:
allowedRepetitions-
-
getCacheSize
-
setCacheSize
-