在JBoss 6的部署目录下,有jboss-logging.xml
:FILE
appender 有以下模式:
<pattern-formatter pattern="%d %-5p [%c] (%t:%x) %s%E%n"/>
这会输出如下内容:
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.
我想知道是什么 %s%E 代币代表...
这是 JBoss 6 特有的东西吗?
最佳答案
来自 http://i0.grepcode.com/file/repo1.maven.org/maven2/org.jboss.logmanager/jboss-logmanager/1.2.0.GA/org/jboss/logmanager/formatters/FormatStringParser.java
%E 是堆栈跟踪,%s 是消息。
关于logging - JBoss AS 6 日志模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3389630/