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

public Class LevelFilter

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

A class that filters events by the level equality.

For more information about this filter, please refer to the online manual at http://logback.qos.ch/manual/filters.html#levelFilter

Authors
Ceki Gülcü, Sébastien Pennec

Field Summary

Modifier and TypeField and Description
pack-priv Level
Inherited from ch.qos.logback.core.filter.AbstractMatcherFilter:
onMatchonMismatch

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
setLevel(Level level)

public void
Inherited from ch.qos.logback.core.filter.AbstractMatcherFilter:
getOnMatchgetOnMismatchsetOnMatchsetOnMismatch

Field Detail

levelback to summary
pack-priv Level level

Constructor Detail

LevelFilterback to summary
public LevelFilter()

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(Level level)
startback to summary
public void start()

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

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