nl.surfnet.coin.shared.log.diagnostics
Class LoggerThresholdFilter

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
          extended by nl.surfnet.coin.shared.log.diagnostics.LoggerThresholdFilter
All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

public class LoggerThresholdFilter
extends ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>

Filter that uses both the logger and level to decide whether to pass


Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
LoggerThresholdFilter()
           
 
Method Summary
 ch.qos.logback.core.spi.FilterReply decide(ch.qos.logback.classic.spi.ILoggingEvent event)
           
 void setLevel(ch.qos.logback.classic.Level level)
           
 void setLogger(String logger)
           
 void start()
           
 
Methods inherited from class ch.qos.logback.core.filter.Filter
getName, isStarted, setName, 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
 

Constructor Detail

LoggerThresholdFilter

public LoggerThresholdFilter()
Method Detail

decide

public ch.qos.logback.core.spi.FilterReply decide(ch.qos.logback.classic.spi.ILoggingEvent event)
Specified by:
decide in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>

setLevel

public void setLevel(ch.qos.logback.classic.Level level)

setLogger

public void setLogger(String logger)

start

public void start()
Specified by:
start in interface ch.qos.logback.core.spi.LifeCycle
Overrides:
start in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.