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

public Class ThresholdFilter

extends Filter<ILoggingEvent>
Class Inheritance
Imports
ch.qos.logback.classic.Level, ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.filter.Filter, ch.qos.logback.core.spi.FilterReply

Filters events below the threshold level. Events with a level below the specified level will be denied, while events with a level equal or above the specified level will trigger a FilterReply.NEUTRAL result, to allow the rest of the filter chain process the event. For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html#thresholdFilter
Author
Sébastien Pennec

Field Summary

Modifier and TypeField and Description
pack-priv Level

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FilterReply
decide(ILoggingEvent
The event to decide upon.
event
)

Implements abstract ch.qos.logback.core.filter.Filter.decide.

If the decision is FilterReply#DENY, then the event will be dropped.
public void
public void
Inherited from ch.qos.logback.core.filter.Filter:
getNameisStartedsetNamestop

Field Detail

levelback to summary
pack-priv Level level

Constructor Detail

ThresholdFilterback to summary
public ThresholdFilter()

Method Detail

decideback to summary
public FilterReply decide(ILoggingEvent event)

Implements abstract ch.qos.logback.core.filter.Filter.decide.

Doc from ch.qos.logback.core.filter.Filter.decide.

If the decision is FilterReply#DENY, then the event will be dropped. If the decision is FilterReply#NEUTRAL, then the next filter, if any, will be invoked. If the decision is FilterReply#ACCEPT then the event will be logged without consulting with other filters in the chain.

Parameters
event:ILoggingEvent

The event to decide upon.

Annotations
@Override
setLevelback to summary
public void setLevel(String level)
startback to summary
public void start()

Overrides ch.qos.logback.core.filter.Filter.start.

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