[logback-dev] svn commit: r1909 - in logback/trunk: logback-core/src/main/java/ch/qos/logback/core logback-examples/src/main/java/chapter3 logback-site/src/site/pages

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed Oct 29 19:42:45 CET 2008


Author: ceki
Date: Wed Oct 29 19:42:44 2008
New Revision: 1909

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java
   logback/trunk/logback-examples/src/main/java/chapter3/MyApp1.java
   logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java
   logback/trunk/logback-examples/src/main/java/chapter3/MyApp3.java
   logback/trunk/logback-site/src/site/pages/news.html

Log:
- changes in comments
- copyright notices

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java	Wed Oct 29 19:42:44 2008
@@ -24,15 +24,16 @@
   // This method is synchronized on the instance.
   // Code
   int count = 0;
-  
-  // reading SynchronizedCollection the mutex is the returned 
-  // synchronized list, we make use of this fact in getCopyOfStatusList
+
+  // reading SynchronizedCollection source code, we learn that the mutex is the
+  // returned synchronized list, we make use of this fact in getCopyOfStatusList
   final List<Status> statusList = Collections
       .synchronizedList(new ArrayList<Status>());
   int level = Status.INFO;
 
-  // reading SynchronizedCollection the mutex is the returned 
-  // synchronized list, we make use of this fact in getCopyOfStatusListnerList
+  // reading SynchronizedCollection source code, we learn that the mutex is the
+  // returned synchronized list, we make use of this fact in
+  // getCopyOfStatusListnerList
   final List<StatusListener> statusListenerList = Collections
       .synchronizedList(new ArrayList<StatusListener>());
 
@@ -54,13 +55,13 @@
     statusList.add(newStatus);
     fireStatusAddEvent(newStatus);
   }
-  
+
   private void fireStatusAddEvent(Status status) {
     synchronized (statusListenerList) {
-      for(StatusListener sl : statusListenerList) {
+      for (StatusListener sl : statusListenerList) {
         sl.addStatusEvent(status);
-      }    
-    }  
+      }
+    }
   }
 
   public List<Status> getCopyOfStatusList() {

Modified: logback/trunk/logback-examples/src/main/java/chapter3/MyApp1.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/MyApp1.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/MyApp1.java	Wed Oct 29 19:42:44 2008
@@ -1,7 +1,7 @@
 /**
- * Logback: the reliable, generic, fast and flexible logging framework.
+ * Logback: the generic, reliable, fast and flexible logging framework.
  * 
- * Copyright (C) 1999-2006, QOS.ch
+ * Copyright (C) 2000-2008, QOS.ch
  * 
  * This library is free software, you can redistribute it and/or modify it under
  * the terms of the GNU Lesser General Public License as published by the Free

Modified: logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java	Wed Oct 29 19:42:44 2008
@@ -20,8 +20,9 @@
   final static Logger logger = LoggerFactory.getLogger(MyApp2.class);
 
   public static void main(String[] args) {
-    // print logback's internal status
+    // assume SLF4J is bound to logback in the current environment
     LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
+    // print logback's internal status
     StatusPrinter.print(lc);
     
     logger.info("Entering application.");

Modified: logback/trunk/logback-examples/src/main/java/chapter3/MyApp3.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/MyApp3.java	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/MyApp3.java	Wed Oct 29 19:42:44 2008
@@ -1,13 +1,12 @@
 /**
- * Logback: the reliable, generic, fast and flexible logging framework.
+ * Logback: the generic, reliable, fast and flexible logging framework.
  * 
- * Copyright (C) 1999-2008, QOS.ch
+ * Copyright (C) 2000-2008, QOS.ch
  * 
  * This library is free software, you can redistribute it and/or modify it under
  * the terms of the GNU Lesser General Public License as published by the Free
  * Software Foundation.
  */
-
 package chapter3;
 
 /**
@@ -26,7 +25,7 @@
   final static Logger logger = LoggerFactory.getLogger(MyApp3.class);
 
   public static void main(String[] args) {
-    // assume logback is in use
+    // assume SLF4J is bound to logback in the current environment
     LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
 
     try {

Modified: logback/trunk/logback-site/src/site/pages/news.html
==============================================================================
--- logback/trunk/logback-site/src/site/pages/news.html	(original)
+++ logback/trunk/logback-site/src/site/pages/news.html	Wed Oct 29 19:42:44 2008
@@ -32,6 +32,20 @@
   property files from classpath resources.
   </p>
 
+  <p>Fixed <a href="http://jira.qos.ch/browse/LBCLASSIC-69">bug
+  LBCLASSIC-69</a> reported by Anton Tagunov. The
+  LevelToSyslogSeverity now correctly handles the TRACE level.
+  </p>
+
+  <p>Fixed <a href="http://jira.qos.ch/browse/LBCLASSIC-57">bug
+  LBCLASSIC-57</a> reported by Anton Tagunov.
+  </p>
+
+  <p>Fixed <a
+  href="http://jira.qos.ch/browse/LBCLASSIC-59">improvement request
+  LBCLASSIC-59</a> orignally made by Anton Tagunov. 
+  </p>
+
   <hr width="80%" align="center" />
 
   <h3>28th of October 2008 - Release of version 0.9.11</h3>
@@ -66,7 +80,7 @@
   </p>
 
   <p>Fixed <a href="http://jira.qos.ch/browse/LBCLASSIC-56">bug
-  LBCLASSIC-56c</a> originally reported by Michel Colette. Backslash
+  LBCLASSIC-56</a> originally reported by Michel Colette. Backslash
   characters are now correctly interpreted in filename patterns.
   </p>
 


More information about the logback-dev mailing list