-
Bug
-
Resolution: Done
-
Major
-
None
-
3.0.0.Beta4-jboss-logging
-
None
Slf4jLogger in JBoss Logging Manager formats the messages in logging methods with Object array parameters (ie. info(String, Object[]), debug(String, Object[]) etc.) the wrong way. MessageFormatter.format(format, argArray) is used, but MessageFormatter.arrayFormat(format, argArray) should be used instead. Using the format() method results in putting the whole array in the first placeholder and leaving the following ones empty.
Example:
logger.info("1: {} 2: {} 3: {}", new Object[]
{ "ONE", "TWO", "THREE" });
Expected output:
1: ONE 2: TWO 3: THREE
Actual output:
1: [ONE, TWO, THREE] 2: {} 3: {}
- relates to
-
JBAS-8797 Logging with SLF4J produces wrong output when using multiple parameters in format
- Resolved