public class DuplicateMessageFilter extends TurboFilter
http://logback.qos.ch/manual/filters.html#DuplicateMessageFilter
for details.| Modifier and Type | Field and Description |
|---|---|
int |
allowedRepetitions |
int |
cacheSize |
static int |
DEFAULT_ALLOWED_REPETITIONS
The default number of allows repetitions.
|
static int |
DEFAULT_CACHE_SIZE
The default cache size.
|
| Constructor and Description |
|---|
DuplicateMessageFilter() |
| Modifier and Type | Method and Description |
|---|---|
FilterReply |
decide(Marker marker,
Logger logger,
Level level,
java.lang.String format,
java.lang.Object[] params,
java.lang.Throwable t)
Make a decision based on the multiple parameters passed as arguments.
|
int |
getAllowedRepetitions() |
int |
getCacheSize() |
void |
setAllowedRepetitions(int allowedRepetitions)
The allowed number of repetitions before
|
void |
setCacheSize(int cacheSize) |
void |
start() |
void |
stop() |
getName, isStarted, setNamepublic static final int DEFAULT_CACHE_SIZE
public static final int DEFAULT_ALLOWED_REPETITIONS
public int allowedRepetitions
public int cacheSize
public void start()
start in class TurboFilterpublic void stop()
stop in class TurboFilterpublic FilterReply decide(Marker marker,
Logger logger,
Level level,
java.lang.String format,
java.lang.Object[] params,
java.lang.Throwable t)
TurboFilterFilterReply#DENY,
FilterReply#NEUTRAL, or FilterReply#ACCEPT.decide in class TurboFilterpublic int getAllowedRepetitions()
public void setAllowedRepetitions(int allowedRepetitions)
allowedRepetitions - public int getCacheSize()
public void setCacheSize(int cacheSize)