【发布时间】:2014-04-25 23:31:00
【问题描述】:
我按照 CXF 网站上的说明启用了 SOAP 请求的日志记录,但在我的日志中看不到任何日志记录。
我有log4j,所以我将-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger 添加到Tomcat jvm args,然后我创建了cxf.xml 并放入类路径。我还将记录器添加到 log4j 配置中。
没有任何记录。
可能是什么问题?
cxf.xml:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
</cxf:bus>
</beans>
【问题讨论】: