[logback-dev] svn commit: r2393 - logback/trunk/logback-examples/src/main/java/chapter4
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Jul 31 18:19:11 CEST 2009
Author: ceki
Date: Fri Jul 31 18:19:10 2009
New Revision: 2393
Modified:
logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes1.java
logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes2.java
Log:
- replaced references to LoggerContext.ROOT_NAME with references to org.slf4j.Logger.ROOT_LOGGER_NAME
Modified: logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes1.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes1.java (original)
+++ logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes1.java Fri Jul 31 18:19:10 2009
@@ -34,7 +34,7 @@
writerAppender.setWriter(new OutputStreamWriter(os));
writerAppender.setImmediateFlush(false);
writerAppender.start();
- Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
+ Logger root = lc.getLogger(Logger.ROOT_LOGGER_NAME);
root.addAppender(writerAppender);
Logger logger = lc.getLogger(ExitWoes1.class);
Modified: logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes2.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes2.java (original)
+++ logback/trunk/logback-examples/src/main/java/chapter4/ExitWoes2.java Fri Jul 31 18:19:10 2009
@@ -35,7 +35,7 @@
writerAppender.setWriter(new OutputStreamWriter(os));
writerAppender.setImmediateFlush(false);
writerAppender.start();
- Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
+ Logger root = lc.getLogger(Logger.ROOT_LOGGER_NAME);
root.addAppender(writerAppender);
Logger logger = lc.getLogger(ExitWoes2.class);
More information about the logback-dev
mailing list