Or you add logging interceptors.
svrFactory.getInInterceptors().add(new LoggingInInterceptor());
svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
Or do it via spring
http://cxf.apache.org/docs/debugging-and-logging.html
http://cwiki.apache.org/CXF20DOC/bus-configuration.html
On Apr 3, 2010, at 1:11 PM, muralidhar buditi wrote:
> Hi,
> i think you can set the property
> -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
> in your application startop file.like catalina.sh in tomcat.
>
>
> -Regards,
> Muralidhar.Buditi
>
>
>
>
> On 3/31/10, SaravananRamamoorthy <[email protected]> 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-tp28093808p28093808.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
Johan Edstrom
[email protected]
They that can give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety.
Benjamin Franklin, Historical Review of Pennsylvania, 1759