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.

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-tp28093808p28094288.html
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

Reply via email to