1
0

[LOGGING-133] Change scope of Jdk14Logger.log to protected.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1448053 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart
2013-02-20 09:20:12 +00:00
parent 5c6d105784
commit 310645a75a
2 changed files with 8 additions and 2 deletions

View File

@@ -44,6 +44,10 @@ The <action> type attribute can be add,update,fix,remove.
</properties> </properties>
<body> <body>
<release version="1.1.2" date="In SVN" description="Bug fixes."> <release version="1.1.2" date="In SVN" description="Bug fixes.">
<action type="update" issue="LOGGING-133">
Change scope of Jdk14Logger.log(Level, String, Throwable) to protected, allowing
subclasses to modify the logging output.
</action>
<action type="fix" issue="LOGGING-146"> <action type="fix" issue="LOGGING-146">
Properly synchronize access to protected static field LogFactory.nullClassLoaderFactory. Properly synchronize access to protected static field LogFactory.nullClassLoaderFactory.
</action> </action>

View File

@@ -67,9 +67,9 @@ public class Jdk14Logger implements Log, Serializable {
*/ */
protected String name = null; 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(); Logger logger = getLogger();
if (logger.isLoggable(level)) { if (logger.isLoggable(level)) {
// Hack (?) to get the stack trace. // Hack (?) to get the stack trace.
@@ -91,6 +91,8 @@ public class Jdk14Logger implements Log, Serializable {
} }
} }
// --------------------------------------------------------- Public Methods
/** /**
* Logs a message with <code>java.util.logging.Level.FINE</code>. * Logs a message with <code>java.util.logging.Level.FINE</code>.
* *