[LOGBack-dev] svn commit: r399 - logback/classic/trunk/examples/src/chapter1

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Aug 7 17:35:17 CEST 2006


Author: seb
Date: Mon Aug  7 17:35:17 2006
New Revision: 399

Added:
   logback/classic/trunk/examples/src/chapter1/Bar.java
Modified:
   logback/classic/trunk/examples/src/chapter1/MyApp.java
Log:
extracted Bar class from MyApp file, so we can use it in other examples

Added: logback/classic/trunk/examples/src/chapter1/Bar.java
==============================================================================
--- (empty file)
+++ logback/classic/trunk/examples/src/chapter1/Bar.java	Mon Aug  7 17:35:17 2006
@@ -0,0 +1,11 @@
+package chapter1;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+class Bar {
+	Logger logger = LoggerFactory.getLogger(Bar.class);
+	public void doIt() {
+		logger.debug("doing my job");
+	}
+}
\ No newline at end of file

Modified: logback/classic/trunk/examples/src/chapter1/MyApp.java
==============================================================================
--- logback/classic/trunk/examples/src/chapter1/MyApp.java	(original)
+++ logback/classic/trunk/examples/src/chapter1/MyApp.java	Mon Aug  7 17:35:17 2006
@@ -1,8 +1,8 @@
 package chapter1;
 
 // Import SLF4J classes.
-import org.slf4j.LoggerFactory;
 import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import ch.qos.logback.BasicConfigurator;
 
@@ -23,10 +23,3 @@
      logger.info("Exiting application.");
    }
 }
-
-class Bar {
-	Logger logger = LoggerFactory.getLogger(Bar.class);
-	public void doIt() {
-		logger.debug("doing my job");
-	}
-}
\ No newline at end of file



More information about the logback-dev mailing list