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

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Aug 22 10:19:33 CEST 2006


Author: seb
Date: Tue Aug 22 10:19:32 2006
New Revision: 472

Modified:
   logback/trunk/logback-classic/examples/src/chapter1/HelloWorld1.java
   logback/trunk/logback-classic/examples/src/chapter1/HelloWorld2.java
   logback/trunk/logback-classic/examples/src/chapter1/HelloWorld3.java
Log:
changed way to retrieve logger

Modified: logback/trunk/logback-classic/examples/src/chapter1/HelloWorld1.java
==============================================================================
--- logback/trunk/logback-classic/examples/src/chapter1/HelloWorld1.java	(original)
+++ logback/trunk/logback-classic/examples/src/chapter1/HelloWorld1.java	Tue Aug 22 10:19:32 2006
@@ -7,7 +7,7 @@
 
 	public static void main(String[] args) {
 
-    Logger logger = LoggerFactory.getLogger(HelloWorld1.class);
+    Logger logger = LoggerFactory.getLogger("chapter1.HelloWorld1");
 		logger.debug("Hello world.");
 	}
 }

Modified: logback/trunk/logback-classic/examples/src/chapter1/HelloWorld2.java
==============================================================================
--- logback/trunk/logback-classic/examples/src/chapter1/HelloWorld2.java	(original)
+++ logback/trunk/logback-classic/examples/src/chapter1/HelloWorld2.java	Tue Aug 22 10:19:32 2006
@@ -8,7 +8,7 @@
 public class HelloWorld2 {
 
 	public static void main(String[] args) {
-    Logger logger = LoggerFactory.getLogger(HelloWorld2.class);
+    Logger logger = LoggerFactory.getLogger("chapter1.HelloWorld2");
 		logger.debug("Hello world.");
 		LoggerStatusPrinter.printStatusInDefaultContext();
 	}

Modified: logback/trunk/logback-classic/examples/src/chapter1/HelloWorld3.java
==============================================================================
--- logback/trunk/logback-classic/examples/src/chapter1/HelloWorld3.java	(original)
+++ logback/trunk/logback-classic/examples/src/chapter1/HelloWorld3.java	Tue Aug 22 10:19:32 2006
@@ -9,7 +9,7 @@
 public class HelloWorld3 {
 
   public static void main(String[] args) {
-    Logger logger = LoggerFactory.getLogger(HelloWorld3.class);
+    Logger logger = LoggerFactory.getLogger("chapter1.HelloWorld3");
 
 		BasicConfigurator.configureDefaultContext();
 		logger.debug("Hello world.");



More information about the logback-dev mailing list