[jboss-svn-commits] JBoss Common SVN: r3845 - common-logging-jdk/trunk/src/main/java/org/jboss/logging/jdk.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Dec 11 19:19:07 EST 2009
Author: david.lloyd at jboss.com
Date: 2009-12-11 19:19:06 -0500 (Fri, 11 Dec 2009)
New Revision: 3845
Modified:
common-logging-jdk/trunk/src/main/java/org/jboss/logging/jdk/JDK14LoggerPluginInstance.java
Log:
JBLOGGING-28: use resource bundle if it is configured in the log message
Modified: common-logging-jdk/trunk/src/main/java/org/jboss/logging/jdk/JDK14LoggerPluginInstance.java
===================================================================
--- common-logging-jdk/trunk/src/main/java/org/jboss/logging/jdk/JDK14LoggerPluginInstance.java 2009-12-12 00:12:30 UTC (rev 3844)
+++ common-logging-jdk/trunk/src/main/java/org/jboss/logging/jdk/JDK14LoggerPluginInstance.java 2009-12-12 00:19:06 UTC (rev 3845)
@@ -32,6 +32,7 @@
import java.util.Map;
import java.util.EnumMap;
+import java.util.ResourceBundle;
/**
* An example LoggerPlugin which uses the JDK java.util.logging framework.
@@ -75,6 +76,8 @@
record.setLoggerName(name);
record.setThrown(t);
record.setSourceMethodName(null); // prevent expensive, yet guaranteed to be incorrect lookup
+ final ResourceBundle bundle = log.getResourceBundle();
+ if (bundle != null) record.setResourceBundle(bundle);
log.log(record);
}
@@ -83,6 +86,8 @@
record.setLoggerName(name);
record.setThrown(t);
record.setSourceMethodName(null); // prevent expensive, yet guaranteed to be incorrect lookup
+ final ResourceBundle bundle = log.getResourceBundle();
+ if (bundle != null) record.setResourceBundle(bundle);
log.log(record);
}
}
More information about the jboss-svn-commits
mailing list