2 Replies Latest reply on Nov 15, 2011 11:48 AM by Richard Hopkirk

    AS7 and Log4j NDC

    Richard Hopkirk Newbie

      We are using 7.1.0.Alpha1-SNAPSHOT with Log4j 1.2.16 that comes bundled in /modules.  If I push() a message onto the NDC, it does not come out in the log message.  I have configured the pattern in standalone.xml like so:




                  <console-handler name="CONSOLE" autoflush="true">

                      <level name="TRACE"/>


                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c{1}] (%t) (%x) %s%E%n"/>






      If I change my class to import jboss logging instead



      import org.jboss.logging.Logger;

      import org.jboss.logging.NDC;





      The log messages now include the NDC.  Am I missing some configuration for using Log4j ?