ch.qos.logback.classic.boolex
Class OnErrorEvaluator

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.boolex.EventEvaluatorBase<ILoggingEvent>
          extended by ch.qos.logback.classic.boolex.OnErrorEvaluator
All Implemented Interfaces:
EventEvaluator<ILoggingEvent>, ContextAware, LifeCycle

public class OnErrorEvaluator
extends EventEvaluatorBase<ILoggingEvent>

Evaluates to true when the logging event passed as parameter has level ERROR or higher.

Author:
Ceki Gülcü

Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
OnErrorEvaluator()
           
 
Method Summary
 boolean evaluate(ILoggingEvent event)
          Return true if event passed as parameter has level ERROR or higher, returns false otherwise.
 
Methods inherited from class ch.qos.logback.core.boolex.EventEvaluatorBase
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
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Constructor Detail

OnErrorEvaluator

public OnErrorEvaluator()
Method Detail

evaluate

public boolean evaluate(ILoggingEvent event)
                 throws NullPointerException,
                        EvaluationException
Return true if event passed as parameter has level ERROR or higher, returns false otherwise.

Parameters:
event - The event to evaluate
Returns:
true if there is a match, false otherwise.
Throws:
NullPointerException - can be thrown in presence of null values
EvaluationException - may be thrown during faulty evaluation


Copyright © 2005-2013 QOS.ch. All Rights Reserved.