Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25900

[GSS](7.4.z) MDC is ignored when using Log4J 2 API

XMLWordPrintable

      When logging via the Log4J 2 API MDC-variables are not filled in the output. The output of the reproducer is as follows :

      15:31:38,326 INFO [TestServlet] (default task-3) [deployment=] Log4J 2
      15:31:38,327 INFO [TestServlet] (default task-3) [deployment=logging-poc] Log4J 1
      15:31:38,328 INFO [TestServlet] (default task-3) [deployment=logging-poc] SLF4J 1
      15:31:38,328 INFO [TestServlet] (default task-3) [deployment=logging-poc] java.util.logging
      15:31:38,328 INFO [TestServlet] (default task-3) [deployment=logging-poc] commons-logging

       

      Expactation: MDC-Variables are considered regardless of logging API.

              rhn-support-rbudinsk Rastislav Budinský (Inactive)
              rhn-support-ssanghav Sneha Sanghavi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: