[jboss-jira] [JBoss JIRA] Commented: (JBAS-8797) Logging with SLF4J produces wrong output when using multiple parameters in format
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Sat Jul 16 06:45:23 EDT 2011
[ https://issues.jboss.org/browse/JBAS-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614628#comment-12614628 ]
jaikiran pai commented on JBAS-8797:
------------------------------------
The comment in JBLOGGING-53 https://issues.jboss.org/browse/JBLOGGING-53?focusedCommentId=12573513&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12573513 says that this is fixed in slf4j-jboss-logmanager 1.0.0.CR5.
r111768 for JBAS-8813 upgrades slf4j-jboss-logmanager to 1.0.0.GA. So AS6 trunk should now have this fix. To test this, use the nightly build as explained here http://community.jboss.org/thread/161386.
Marking this issue as resolved.
> Logging with SLF4J produces wrong output when using multiple parameters in format
> ---------------------------------------------------------------------------------
>
> Key: JBAS-8797
> URL: https://issues.jboss.org/browse/JBAS-8797
> Project: Legacy JBoss Application Server 6
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Logging
> Affects Versions: 6.0.0.Final
> Environment: Ubuntu Linux 64bit
> Reporter: Jens Reimann
> Assignee: David Lloyd
> Fix For: 6.1.0
>
>
> Logging with SLF4J and passing parameters as Object[] produces wrong output in the JBoss log:
> e.g.: logger.debug ( "Logging - Level: {}, Action: {}, Result: {}, UserData: {}, Reference: {}/{}", new Object[] { level, action, result, data, referenceType, referenceId } );
> produces
> Logging - Level: <parameter #1 as Object[]>, Action: {}, Result: {}, ....
> It seems to me that instead of handling the Object[] that is passed as array is used later on as simple Object which reduces the provided parameters to 1 instead. There seems to be no problem with the log calls that take one or two objects (which are separate methods in SLF4J).
> I would consider it major since it scrambles all logging messages using the Object[] methods.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list