【发布时间】:2017-09-22 16:43:18
【问题描述】:
我的应用程序在 Wildfly 8.2.1 中运行。在standalone.xml 文件中,日志子系统配置为使用以下模式格式化程序:
<console-handler name="CONSOLE">
<formatter>
<pattern-formatter pattern="%K{level}%d{yyyy-MM-dd HH:mm:ss,SSS} | %-5p | %-15.15t | %-30.30c | %s%n%e"/>
</formatter>
</console-handler>
当记录器的名称超过 30 个字符时,它会从右侧截断,如下行所示(完整的记录器名称为 com.fakeorg.test.gateway.polling.LongPollingMap):
2017-04-25 11:45:00,010 | DEBUG | EJB default - 1 | com.fakeorg.test.gateway.polli | Begin removing expired long-polling connections...
名称超过30个字符时如何从左边截断?
【问题讨论】: