[jboss-jira] [JBoss JIRA] (JBLOGGING-97) Object value passed to JBossLogManagerProvider.putMdc(String, Object) should be returned from getMdc(final String)

James Perkins (JIRA) jira-events at lists.jboss.org
Fri Nov 22 12:05:06 EST 2013


    [ https://issues.jboss.org/browse/JBLOGGING-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926228#comment-12926228 ] 

James Perkins commented on JBLOGGING-97:
----------------------------------------

Hit add too soon.

That said, an Object return type shouldn't be relied on unless you can guarantee your back end log manager supports it. SLF4J and log4j2 do not support object values. JBoss Log Manager will in the next release and log4j are the only two that do.
                
> Object value passed to JBossLogManagerProvider.putMdc(String, Object) should be returned from getMdc(final String)
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBLOGGING-97
>                 URL: https://issues.jboss.org/browse/JBLOGGING-97
>             Project: JBoss Logging
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: slf4j-jboss-logmanager
>    Affects Versions: 3.1.3.GA
>            Reporter: Scott Marlow
>            Assignee: James Perkins
>            Priority: Blocker
>             Fix For: 3.1.4.GA
>
>
> Change JBossLogManagerProvider.putMdc(final String key, final Object value) to call MDC.put(key, value) instead of MDC.put(key, String.valueOf(value))

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list