为什么 log4j 打印:
17:58:30,623 INFO [stdout] (http--127.0.0.1-8080-5)
完整的消息是:
17:58:30,623 INFO [stdout] (http--127.0.0.1-8080-5) 2012-12-09 17:58:30.623 [INFO] com.edfx.adb.web.controller.AuthController#login - A message
我正在使用 JBoss AS7,并且排除了 log4j,例如:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
</deployment>
</jboss-deployment-structure>
我log4j.properties
的是:
log4j.rootLogger=INFO, CA
log4j.appender.CA=org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%p] %c#%M - %m%n
我想将消息打印为:
2012-12-09 17:58:30.623 [INFO] com.edfx.adb.web.controller.AuthController#login - A message
我该怎么做?