@InInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingInInterceptor" )
@OutInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingOutInterceptor")
public class SKTWeb implements SKTWebService {
// method logic goes here
}
嗨,在CXF方法實現中添加這兩行後。 我能得到SOAP Requestand響應的鞭子下的tomcat服務器控制檯如何使CXF SOAP請求在日誌文件下打印
看到Tomcat下控制檯打印的SOAP請求的情況下
INFO: Inbound Message
----------------------------
ID: 1
Address: /Sktweb-33.0/services/SKTWeb
Encoding: UTF-8
Content-Type: text/xml; charset=UTF-8
Headers: {cache-control=[no-cache], content-type=[text/xml; charset=UTF-8], connection=[keep-alive], host=[local
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns4:strategy xmlns:ns
有誰請告訴我如何能得到這個我的日誌文件中(Log4j的)
目前,這是我的log4j.properties文件
log4j.rootCategory=INFO, A1
# A1 is a DailyRollingFileAppender
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.file=/Haieeee.log
log4j.appender.A1.datePattern='.'yyyy-MM-dd
log4j.appender.A1.append=true
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-22d{dd/MMM/yyyy HH:mm:ss} - %m%n
,也是我有META-INF \ CXF \ org \ apache的\ CXF \ LOGG在Web應用程序中使用Log4jLogger.class。 ,也是我一直
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
</cxf:bus>
裏面的endpoints.xml文件
任何幫助,請