Package ch.qos.logback.access.filter
Class CountingFilter
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.filter.Filter
-
- ch.qos.logback.access.filter.CountingFilter
-
- All Implemented Interfaces:
ContextAware
,LifeCycle
public class CountingFilter extends Filter
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description CountingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterReply
decide(java.lang.Object event)
If the decision is
, then the event will be dropped.FilterReply.DENY
java.lang.String
getDomain()
long
getTotal()
void
setDomain(java.lang.String domain)
void
start()
void
stop()
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Method Detail
-
decide
public FilterReply decide(java.lang.Object event)
Description copied from class:Filter
If the decision is
, then the event will be dropped. If the decision isFilterReply.DENY
, then the next filter, if any, will be invoked. If the decision isFilterReply.NEUTRAL
then the event will be logged without consulting with other filters in the chain.FilterReply.ACCEPT
-
getTotal
public long getTotal()
-
start
public void start()
-
getDomain
public java.lang.String getDomain()
-
setDomain
public void setDomain(java.lang.String domain)
-
-