diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b4ebd9b..1b94978 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -44,6 +44,10 @@ The type attribute can be add,update,fix,remove. + + Change scope of Jdk14Logger.log(Level, String, Throwable) to protected, allowing + subclasses to modify the logging output. + Properly synchronize access to protected static field LogFactory.nullClassLoaderFactory. diff --git a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java index 05af7eb..6d3d81c 100644 --- a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java +++ b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java @@ -67,9 +67,9 @@ public class Jdk14Logger implements Log, Serializable { */ protected String name = null; - // --------------------------------------------------------- Public Methods + // --------------------------------------------------------- Protected Methods - private void log( Level level, String msg, Throwable ex ) { + protected void log( Level level, String msg, Throwable ex ) { Logger logger = getLogger(); if (logger.isLoggable(level)) { // Hack (?) to get the stack trace. @@ -91,6 +91,8 @@ public class Jdk14Logger implements Log, Serializable { } } + // --------------------------------------------------------- Public Methods + /** * Logs a message with java.util.logging.Level.FINE. *