1
0

Reverted some changes which broke backwards compatibility

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2005-02-12 14:56:21 +00:00
parent 15ee1ee573
commit 769564ac45

View File

@@ -16,6 +16,8 @@
package org.apache.commons.logging.impl; package org.apache.commons.logging.impl;
import java.io.Serializable;
import org.apache.avalon.framework.logger.Logger; import org.apache.avalon.framework.logger.Logger;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
@@ -38,11 +40,15 @@ import org.apache.commons.logging.Log;
* to child loggers of this <code>Logger</code>. * to child loggers of this <code>Logger</code>.
* </li> * </li>
* </ul> * </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> * @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 */ /** Ancesteral avalon logger */
private static Logger defaultLogger = null; private static Logger defaultLogger = null;
@@ -73,7 +79,7 @@ public class AvalonLogger implements Log {
* Gets the Avalon logger implementation used to perform logging. * Gets the Avalon logger implementation used to perform logging.
* @return avalon logger implementation * @return avalon logger implementation
*/ */
private final Logger getLogger() { public Logger getLogger() {
return logger; return logger;
} }