Enable logging in Apache CXF generated client -
I have followed the guidelines for locking soap requests on CXF website, but no logging in my logs Can see I have log4j, so I added - Dorg.apache.cxf.Logger = org.apache.cxf.common.logging.Log4jLogger Tomcat jvm args, then I created cxf.xml and put it in classpath. I did not find anything added in Log4J config to the logger too. What can be the problem?
cxf.xml: & lt; Bem xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http: // www .w3.org / 2001 / XMLSchema-Example" xmlns: cxf = "http: // cxf. Apache.org/core "xsi: schema location =" 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"> & Lt; CXF: Bus & gt; & Lt; CXF: Features & gt; & Lt; CXF: Login /> & Lt; / CXF: Features & gt; & Lt; / CXF: Just & gt; & Lt; / Bean & gt;
I use logging initeceptor / loggingout interceptor And I'm not sure about your just configuration, but you should also add a correct logger (with the correct name) in your log4j configuration. In Apache CXF - you will get useful information
Logging interceptor log in using the service specific categories / loggers instead of simply logging initetector / loggingout interceptor. The name of the logger used is org.apache.cxf.services.ServiceName.PortName.PortTypeName. This allows the user to configure specific service filters and formatters per their logging configuration.
I have written about logging with Apache CXF, which provides all the information that was necessary to enable request / feedback logging.
Comments
Post a Comment