Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss AS 6 Logging Patterns

In the deployment directory of JBoss 6, there is jboss-logging.xml:

The FILE appender has following pattern:

<pattern-formatter pattern="%d %-5p [%c] (%t:%x) %s%E%n"/>

This outputs something as follows:

2010-08-02 17:41:43,845 INFO  [STDOUT] (http-127.0.0.1-8080-1:)   2010-08-02 17:41:43,844  INFO [http-127.0.0.1-8080-1] (XyzPageController.java:<init>:58) - New abc instantiated and empty xyz constructed.

I'm wondering what the %s%E tokens stand for... Is this something JBoss 6 specific?

like image 728
Jan Avatar asked Aug 02 '10 16:08

Jan


2 Answers

from http://i0.grepcode.com/file/repo1.maven.org/maven2/org.jboss.logmanager/jboss-logmanager/1.2.0.GA/org/jboss/logmanager/formatters/FormatStringParser.java

The %E is the stack trace and %s is the message.

like image 111
Jason Pyeron Avatar answered Nov 16 '22 02:11

Jason Pyeron


The whole jboss-logging.xml file is JBoss-specific - from JBossAS 6, they're using a proprietary logging configuration, rather than using jboss-log4j.xml like they did in previous versions.

I can't find any documentation as to what it means, though. This stuff is still in beta, so the docs may not exist yet.

like image 42
skaffman Avatar answered Nov 16 '22 02:11

skaffman