On Wednesday 31 March 2010 7:34:03 am Todd G. Nist wrote: > Saravanan, > > By default CXF is using java.util.logging package. To configure it to > use Log4J one can either put a META-INF/cxf/org.apache.cxf.Logger file > onto the classpath with the org.apache.cxf.common.logging.Log4jLogger > class name in it as a single line, or you can supply a > -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger system > property to your code, when executing. > > Refer to http://cwiki.apache.org/CXF20DOC/debugging-and-logging.html > "Using Log4j Instead of java.util.logging" for a more information.
With 2.2.7, I THINK you can also just replace the slf4j-jdk14 jar with the equivalent slf4j-log4j jar. At startup, it tried to figure out if slf4j is logging to log4j and will automatically switch over to log4j if slf4j has done so. I haven't really tried it though. Dan > > Regards, > Todd > > On Wed, 2010-03-31 at 07:02 -0400, SaravananRamamoorthy wrote: > > Hi, > > > > I use Interceptors like > > > > cxfEndpoint.getInInterceptors().add(new > > > > LoggingInInterceptor()); > > > > cxfEndpoint.getOutInterceptors().add(new > > > > LoggingOutInterceptor()); > > > > and I can able to view the Inbound and Outbound messages with header > > > > information. > > > > How I log those information using log4j. > > > > Please suggest me. > > > > Regards > > Saravanan Ramamoorthy > > > > SaravananRamamoorthy wrote: > > > Dear All, > > > > > > In my cxf application, I want to log the Inbound and outbound xml > > > > payload. > > > > > I am using log4j and I do not use any spring stuff. > > > How can I do this using java code to log this feature. > > > Please provide some sample code to do this. > > > > > > Regards > > > Saravanan Ramamoorthy > > > > -- > > View this message in context: > > http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093 > > 808p28094288.html Sent from the cxf-user mailing list archive at > > Nabble.com. -- Daniel Kulp dk...@apache.org http://dankulp.com/blog