Package ch.qos.logback.access.filter
Class CountingFilter
- All Implemented Interfaces:
ContextAware
,LifeCycle
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecide
(IAccessEvent event) If the decision is
, then the event will be dropped.FilterReply.DENY
long
getTotal()
void
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
-
Constructor Details
-
CountingFilter
public CountingFilter()
-
-
Method Details
-
decide
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
- Specified by:
decide
in classFilter<IAccessEvent>
- Parameters:
event
- The event to decide upon.
-
getTotal
-
start
- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classFilter<IAccessEvent>
-
stop
- Specified by:
stop
in interfaceLifeCycle
- Overrides:
stop
in classFilter<IAccessEvent>
-
getDomain
-
setDomain
-