1
2
3
4
5
6
7
8
9
10 package ch.qos.logback.classic.boolex;
11
12 import ch.qos.logback.classic.Level;
13 import ch.qos.logback.classic.spi.LoggingEvent;
14 import ch.qos.logback.core.boolex.EvaluationException;
15 import ch.qos.logback.core.boolex.EventEvaluatorBase;
16
17
18
19
20
21
22
23
24 public class OnErrorEvaluator extends EventEvaluatorBase<LoggingEvent> {
25
26
27
28
29
30 public boolean evaluate(LoggingEvent event) throws NullPointerException,
31 EvaluationException {
32 return event.getLevel().levelInt >= Level.ERROR_INT;
33 }
34 }