1 2 Previous Next 16 Replies Latest reply on Jan 29, 2013 9:22 PM by zhouyaguo Go to original post
      • 15. Re: Customizing  logging format in Jboss 7 AS
        smmehadi

        Thanks James.

        • 16. Re: Customizing  logging format in Jboss 7 AS
          zhouyaguo

          James Perkins wrote:

           

          Michael,

          Both %M and %L should work in a pattern should work. There is no reason to use log4j, the JBoss Log Manager will recognize the format. This pattern "%d{HH:mm:ss,SSS} %-5p [%c.%M:%L] (%t) %s%E%n" works for me.

          14:19:06,931 INFO  [test.testConfig:71] (main) Test message should show up on the console.
          

           

          The %E in the default pattern is for a Throwable. Meaning it will print the stacktrace if an exception is being logged.

           

          --

          James R. Perkins

          Thx, James, ur explaination of "%E" gave me a big help.

          1 2 Previous Next