[logback-dev] svn commit: r1811 - in logback-demo/trunk/src/main: java/ch/qos/logback/demo resources
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Sep 12 15:40:07 CEST 2008
Author: ceki
Date: Fri Sep 12 15:40:06 2008
New Revision: 1811
Modified:
logback-demo/trunk/src/main/java/ch/qos/logback/demo/LoggingTask.java
logback-demo/trunk/src/main/resources/logback.xml
Log:
- stable version
Modified: logback-demo/trunk/src/main/java/ch/qos/logback/demo/LoggingTask.java
==============================================================================
--- logback-demo/trunk/src/main/java/ch/qos/logback/demo/LoggingTask.java (original)
+++ logback-demo/trunk/src/main/java/ch/qos/logback/demo/LoggingTask.java Fri Sep 12 15:40:06 2008
@@ -7,7 +7,7 @@
public class LoggingTask implements Runnable {
- static Marker TRACE_MARKER = MarkerFactory.getMarker("TRACE");
+ static Marker HOWDY_MARKER = MarkerFactory.getMarker("HOWDY");
Logger logger = LoggerFactory.getLogger(LoggingTask.class);
String msg;
@@ -18,7 +18,7 @@
}
public void run() {
//logger.info(msg +" - " + (i++));
- logger.info(TRACE_MARKER, msg +" - " + (i++));
+ logger.info(HOWDY_MARKER, msg +" - " + (i++));
}
}
Modified: logback-demo/trunk/src/main/resources/logback.xml
==============================================================================
--- logback-demo/trunk/src/main/resources/logback.xml (original)
+++ logback-demo/trunk/src/main/resources/logback.xml Fri Sep 12 15:40:06 2008
@@ -31,9 +31,9 @@
class="ch.qos.logback.core.read.CyclicBufferAppender">
<MaxSize>512</MaxSize>
</appender>
- -->
+ -->
- <!-- Cyclic buffer with Evaluator
+ <!-- Cyclic buffer with Evaluator
<appender name="CYCLIC"
class="ch.qos.logback.core.read.CyclicBufferAppender">
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
@@ -47,10 +47,9 @@
<OnMatch>DENY</OnMatch>
</filter>
<MaxSize>512</MaxSize>
- </appender>
-->
- <!-- TurboFilter: MDC value
+ <!-- TurboFilter: by MDC value
<turboFilter class="ch.qos.logback.classic.turbo.MDCFilter">
<MDCKey>username</MDCKey>
<Value>sebastien</Value>
@@ -58,17 +57,16 @@
</turboFilter>
-->
- <!-- TurboFilter: Marker value
+ <!-- TurboFilter: by Marker
<turboFilter class="ch.qos.logback.classic.turbo.MarkerFilter">
- <Name>TRACE</Name>
- <Marker>TRACE</Marker>
+ <Name>HOWDY_FILTER</Name>
+ <Marker>HOWDY</Marker>
<OnMatch>DENY</OnMatch>
</turboFilter>
-->
- <!-- JMX Configurator
+ <!-- JMX Configurator -->
<jmxConfigurator />
- -->
<root>
<level value="DEBUG" />
@@ -78,7 +76,7 @@
<!-- Part I: Basic Cyclic buffer
<appender-ref ref="CYCLIC" />
- -->
+ -->
</root>
More information about the logback-dev
mailing list