Reputation: 9697
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?
Upvotes: 13
Views: 7222
Reputation: 3633
%s
The simple log message (no exception trace)
%E
The exception stack trace (with extended module information)
Upvotes: 2
Reputation: 10303
I want to share mine, my goal was to "copy" the Eclipse's one. There is no documentation, and it differs a little bit from Apache's pattern. Hope it helps.
<formatter name="ECLIPSE_PATTERN">
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
Really I use the following (to get the class and the method)
<formatter name="ECLIPSE_PATTERN_WITH_METHOD">
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %-120s%E {%l}%n"/>
</formatter>
Upvotes: 0
Reputation: 403591
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.
Upvotes: 2