commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r153511 - jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java
Date Sat, 12 Feb 2005 14:56:22 GMT
Author: rdonkin
Date: Sat Feb 12 06:56:21 2005
New Revision: 153511

URL: http://svn.apache.org/viewcvs?view=rev&rev=153511
Log:
Reverted some changes which broke backwards compatibility

Modified:
    jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java

Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java?view=diff&r1=153510&r2=153511
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java
(original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/AvalonLogger.java
Sat Feb 12 06:56:21 2005
@@ -16,6 +16,8 @@
 
 package org.apache.commons.logging.impl;
 
+import java.io.Serializable;
+
 import org.apache.avalon.framework.logger.Logger;
 import org.apache.commons.logging.Log;
 
@@ -38,11 +40,15 @@
  * to child loggers of this <code>Logger</code>.
  * </li>
  * </ul>
- *
+ * <p>
+ * <strong>Note:</strong> <code>AvalonLogger</code> implements
+ * <code>Serializable</code> for reasons of consistency and backwards compatibility.

+ * However, serializable is not recommended.
+ * </p>
  * @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
- * @version $Revision: 1.10 $ $Date: 2004/09/27 16:21:40 $
+ * @version $Revision: 1.10 $ $Date$
  */
-public class AvalonLogger implements Log {
+public class AvalonLogger implements Log, Serializable {
 
     /** Ancesteral avalon logger  */ 
     private static Logger defaultLogger = null;
@@ -73,7 +79,7 @@
      * Gets the Avalon logger implementation used to perform logging.
      * @return avalon logger implementation
      */
-    private final Logger getLogger() {
+    public Logger getLogger() {
         return logger;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message