Top Description Fields Constructors Methods
ch.qos.logback.classic.turbo

public Class DuplicateMessageFilter

extends TurboFilter
Class Inheritance
Imports
org.slf4j.Marker, ch.qos.logback.classic.Level, .Logger, ch.qos.logback.core.spi.FilterReply

See http://logback.qos.ch/manual/filters.html#DuplicateMessageFilter for details.
Author
Ceki Gulcu

Field Summary

Modifier and TypeField and Description
public int
public int
public static final int
DEFAULT_ALLOWED_REPETITIONS

The default number of allows repetitions.

public static final int
DEFAULT_CACHE_SIZE

The default cache size.

private LRUMessageCache
Inherited from ch.qos.logback.classic.turbo.TurboFilter:
start

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FilterReply
decide(Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)

Implements abstract ch.qos.logback.classic.turbo.TurboFilter.decide.

Make a decision based on the multiple parameters passed as arguments.
public int
public int
public void
setAllowedRepetitions(int allowedRepetitions)

The allowed number of repetitions before

public void
setCacheSize(int cacheSize)

public void
public void
Inherited from ch.qos.logback.classic.turbo.TurboFilter:
getNameisStartedsetName

Field Detail

allowedRepetitionsback to summary
public int allowedRepetitions
cacheSizeback to summary
public int cacheSize
DEFAULT_ALLOWED_REPETITIONSback to summary
public static final int DEFAULT_ALLOWED_REPETITIONS

The default number of allows repetitions.

DEFAULT_CACHE_SIZEback to summary
public static final int DEFAULT_CACHE_SIZE

The default cache size.

msgCacheback to summary
private LRUMessageCache msgCache

Constructor Detail

DuplicateMessageFilterback to summary
public DuplicateMessageFilter()

Method Detail

decideback to summary
public FilterReply decide(Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)

Implements abstract ch.qos.logback.classic.turbo.TurboFilter.decide.

Doc from ch.qos.logback.classic.turbo.TurboFilter.decide.

Make a decision based on the multiple parameters passed as arguments. The returned value should be one of FilterReply#DENY, FilterReply#NEUTRAL, or FilterReply#ACCEPT.

Annotations
@Override
getAllowedRepetitionsback to summary
public int getAllowedRepetitions()
getCacheSizeback to summary
public int getCacheSize()
setAllowedRepetitionsback to summary
public void setAllowedRepetitions(int allowedRepetitions)

The allowed number of repetitions before

setCacheSizeback to summary
public void setCacheSize(int cacheSize)
startback to summary
public void start()

Overrides ch.qos.logback.classic.turbo.TurboFilter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Annotations
@Override
stopback to summary
public void stop()

Overrides ch.qos.logback.classic.turbo.TurboFilter.stop.

Implements ch.qos.logback.core.spi.LifeCycle.stop.

Annotations
@Override