ch.qos.logback.classic.filter
Class LevelFilter
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.filter.Filter<E>
ch.qos.logback.core.filter.AbstractMatcherFilter
ch.qos.logback.classic.filter.LevelFilter
- All Implemented Interfaces:
- ContextAware, LifeCycle
public class LevelFilter
- extends AbstractMatcherFilter
A class that filters events depending on their level.
One can specify a level and the behaviour of the filter when
said level is encountered in a logging event.
For more information about filters, please refer to the online manual at
http://logback.qos.ch/manual/filters.html
- Author:
- Ceki Gülcü, Sébastien Pennec
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LevelFilter
public LevelFilter()
decide
public FilterReply decide(Object eventObject)
- Description copied from class:
Filter
- If the decision is
#DENY
, then the event will be
dropped. If the decision is #NEUTRAL
, then the next
filter, if any, will be invoked. If the decision is
#ACCEPT
then the event will be logged without
consulting with other filters in the chain.
- Specified by:
decide
in class Filter
- Parameters:
eventObject
- The event to decide upon.
setLevel
public void setLevel(String level)
start
public void start()
- Specified by:
start
in interface LifeCycle
- Overrides:
start
in class Filter
Copyright © 2005-2011 QOS.ch. All Rights Reserved.