org.scijava.config.logback
Class AbstractLevelsFilter
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.spi.LoggingEvent>
org.scijava.config.logback.AbstractLevelsFilter
- All Implemented Interfaces:
- ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle
- Direct Known Subclasses:
- StdErrFilter, StdOutFilter
public class AbstractLevelsFilter
- extends ch.qos.logback.core.filter.AbstractMatcherFilter<ch.qos.logback.classic.spi.LoggingEvent>
Filters log messages, keeping only certain levels. This is useful so that
they can be directed to a particular log appender (e.g., stdout or
stderr).
This implementation is distinct from logback-classic's built-in
ch.qos.logback.classic.filter.LevelFilter, because that filter only
accepts one level at a time, whereas this implementation accepts a list of
levels.
Thanks to Uriah Carpenter for his answer on StackOverflow.
- Author:
- Curtis Rueden
| Fields inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter |
onMatch, onMismatch |
| Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
context |
|
Method Summary |
ch.qos.logback.core.spi.FilterReply |
decide(ch.qos.logback.classic.spi.LoggingEvent event)
|
| Methods inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter |
getOnMatch, getOnMismatch, setOnMatch, setOnMismatch |
| Methods inherited from class ch.qos.logback.core.filter.Filter |
getName, isStarted, setName, start, stop |
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLevelsFilter
public AbstractLevelsFilter(ch.qos.logback.classic.Level... levels)
decide
public ch.qos.logback.core.spi.FilterReply decide(ch.qos.logback.classic.spi.LoggingEvent event)
- Specified by:
decide in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.LoggingEvent>
Copyright © 2014–2015 SciJava. All rights reserved.