[jboss-svn-commits] JBoss Common SVN: r4889 - slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jan 5 10:58:57 EST 2011


Author: david.lloyd at jboss.com
Date: 2011-01-05 10:58:57 -0500 (Wed, 05 Jan 2011)
New Revision: 4889

Modified:
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/Slf4jLogger.java
Log:
[JBLOGGING-53] Fix problem where wrong format method is used for more than two arguments

Modified: slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/Slf4jLogger.java
===================================================================
--- slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/Slf4jLogger.java	2010-12-23 15:59:11 UTC (rev 4888)
+++ slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/Slf4jLogger.java	2011-01-05 15:58:57 UTC (rev 4889)
@@ -107,7 +107,7 @@
         if (ALT_TRACE_INT < logger.getEffectiveLevel()) {
             return;
         }
-        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.TRACE, MessageFormatter.format(format, argArray), LOGGER_CLASS_NAME);
+        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.TRACE, MessageFormatter.arrayFormat(format, argArray), LOGGER_CLASS_NAME);
         logger.logRaw(rec);
     }
 
@@ -157,7 +157,7 @@
         if (ALT_DEBUG_INT < logger.getEffectiveLevel()) {
             return;
         }
-        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.DEBUG, MessageFormatter.format(format, argArray), LOGGER_CLASS_NAME);
+        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.DEBUG, MessageFormatter.arrayFormat(format, argArray), LOGGER_CLASS_NAME);
         logger.logRaw(rec);
     }
 
@@ -207,7 +207,7 @@
         if (ALT_INFO_INT < logger.getEffectiveLevel()) {
             return;
         }
-        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.INFO, MessageFormatter.format(format, argArray), LOGGER_CLASS_NAME);
+        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.INFO, MessageFormatter.arrayFormat(format, argArray), LOGGER_CLASS_NAME);
         logger.logRaw(rec);
     }
 
@@ -257,7 +257,7 @@
         if (ALT_WARN_INT < logger.getEffectiveLevel()) {
             return;
         }
-        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.WARN, MessageFormatter.format(format, argArray), LOGGER_CLASS_NAME);
+        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.WARN, MessageFormatter.arrayFormat(format, argArray), LOGGER_CLASS_NAME);
         logger.logRaw(rec);
     }
 
@@ -307,7 +307,7 @@
         if (ALT_ERROR_INT < logger.getEffectiveLevel()) {
             return;
         }
-        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.ERROR, MessageFormatter.format(format, argArray), LOGGER_CLASS_NAME);
+        final ExtLogRecord rec = new ExtLogRecord(org.jboss.logmanager.Level.ERROR, MessageFormatter.arrayFormat(format, argArray), LOGGER_CLASS_NAME);
         logger.logRaw(rec);
     }
 



More information about the jboss-svn-commits mailing list