[logback-dev] svn commit: r1407 - logback/trunk/logback-examples/src/main/java/chapter4/mail
noreply.seb at qos.ch
noreply.seb at qos.ch
Mon Mar 5 17:00:57 CET 2007
Author: seb
Date: Mon Mar 5 17:00:57 2007
New Revision: 1407
Modified:
logback/trunk/logback-examples/src/main/java/chapter4/mail/CounterBasedEvaluator.java
Log:
updated due to changes in EventEvaluator
Modified: logback/trunk/logback-examples/src/main/java/chapter4/mail/CounterBasedEvaluator.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter4/mail/CounterBasedEvaluator.java (original)
+++ logback/trunk/logback-examples/src/main/java/chapter4/mail/CounterBasedEvaluator.java Mon Mar 5 17:00:57 2007
@@ -23,6 +23,7 @@
static int LIMIT = 1024;
int counter = 0;
String name;
+ boolean started;
public boolean evaluate(Object event) throws NullPointerException,
EvaluationException {
@@ -44,4 +45,16 @@
public void setName(String name) {
this.name = name;
}
+
+ public boolean isStarted() {
+ return started;
+ }
+
+ public void start() {
+ started = true;
+ }
+
+ public void stop() {
+ started = false;
+ }
}
More information about the logback-dev
mailing list