[logback-dev] svn commit: r810 - logback/trunk/logback-examples/src/main/java/chapter5

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sun Oct 29 21:39:55 CET 2006


Author: ceki
Date: Sun Oct 29 21:39:55 2006
New Revision: 810

Modified:
   logback/trunk/logback-examples/src/main/java/chapter5/SampleLogging.java

Log:

Loggers should be of type org.slf4j not logback-classic.

Modified: logback/trunk/logback-examples/src/main/java/chapter5/SampleLogging.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter5/SampleLogging.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter5/SampleLogging.java	Sun Oct 29 21:39:55 2006
@@ -1,8 +1,8 @@
 package chapter5;
 
+import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import ch.qos.logback.classic.Logger;
 import ch.qos.logback.classic.LoggerContext;
 import ch.qos.logback.classic.joran.JoranConfigurator;
 import ch.qos.logback.core.joran.spi.JoranException;
@@ -11,8 +11,7 @@
 public class SampleLogging {
 
   public static void main(String[] args) {
-    Logger logger = (Logger) LoggerFactory
-        .getLogger(SampleLogging.class);
+    Logger logger = LoggerFactory.getLogger(SampleLogging.class);
     LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
 
     try {



More information about the logback-dev mailing list