1 Reply Latest reply on Mar 7, 2012 6:51 AM by wdfink

    Using MDC Logging in 6.1.0-Final

    sgargan

      I'm having a lot of trouble using the MDC functionality of slf4j & Log4j in JBoss. My app uses the slf4g-1.6.1, the 1.2.16 version of log4j and the 6.1.0-FINAL version of JBoss. The MDC works fine in perf & test where Jetty is used but not in production where JBoss is the container. I've seen that other people have had trouble with log4j MDC and JBoss

       

       

      https://community.jboss.org/thread/161799

       

       

      And it mentions that this should be fixed in the 3.0.0.GA release of jboss logging. I'm wondering if this is part of the 6.1.0-FINAL release? This jira entry mentions that it should be.

       

       

      https://issues.jboss.org/browse/JBAS-8807

       

       

      I was wondering

      1) how I can tell what version of logging is being used in 6.1.0-FINAL

      2) This page mentions that I could use Jboss logging explicitly

      https://community.jboss.org/wiki/UsingMDCInJBossAS6Applications

       

       

      Should the JBoss Libraries be bundled with the war for this (we bundle hibernate in our war so this might be similar) or only used at compile time and 'provided' by Jboss.

       

       

      Any help with this would be great

       

       

      Thanks in advance

       

       

      Steve.

        • 1. Re: Using MDC Logging in 6.1.0-Final
          wdfink

          1)  see the jar-versions.xml file:

          <jar name="jboss-logging.jar" specVersion="3.0.0.GA" specVendor="JBoss, a division of Red Hat, Inc." specTitle="JBoss Logging 3" implVersion="3.0.0.GA" implVendor="JBoss, a division of Red Hat, Inc." implTitle="JBoss Logging 3" implVendorID="org.jboss.logging" implURL="http://www.jboss.org" sealed="false" md5Digest="7d2b2f50766099eda09bf765f6c3dfe8"/>