cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SaravananRamamoorthy <saravanan.ramamoorth...@gmail.com>
Subject Re: Logging Inbound and outbound message in cxf
Date Thu, 01 Apr 2010 11:13:52 GMT

Hi Todd,

I do not have any xml configuration file.
I tried with java code like:
System.setProperty("org.apache.cxf.Logger",
"org.apache.cxf.common.logging.Log4jLogger");
before invoking the cxf operation.

But no luck for me.

Please suggest me what I did mistake.

Regards
Saravanan Ramamoorthy




Nist, Todd (IHG) wrote:
> 
> Perhaps the simplest approach is to use the
> -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
> when you start the application.  The javadoc link below explains how to
> use the org.apache.cxf.common.logging.Log4jLogger class in place of the
> default logger.
> 
> Regards,
> Todd 
> 
> ----- Original Message -----
> From: SaravananRamamoorthy <saravanan.ramamoorthy.s@gmail.com>
> To: users@cxf.apache.org <users@cxf.apache.org>
> Sent: Wed Mar 31 09:12:51 2010
> Subject: Re: Logging Inbound and outbound message in cxf
> 
> 
> Hi Todd,
> 
> I have a web application, Where do I get the Logger file.I do not find any
> detail information regarding this in the site.
> 
> Regards
> Saravanan Ramamoorthy
> 
> 
> Nist, Todd (IHG) wrote:
>> 
>> Hi Saravanan,
>> 
>> Well you need to supply that file yourself, instead of relying on the
>> default.
>> 
>> Create the META-INF/cxf/org.apache.cxf.Logger file somewhere on your
>> classpath. If you are building a war, for instance, it should end up in
>> WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger (or inside a jar in
>> WEB-INF/lib).
>> 
>> For more details refer to this link:
>> 
>> http://cxf.apache.org/javadoc/latest/org/apache/cxf/common/logging/LogUtils.html
>> 
>> HTH.
>> 
>> Regards,
>> Todd
>> 
>> On Wed, 2010-03-31 at 08:09 -0400, SaravananRamamoorthy wrote:
>>> 
>>> Hi Todd,
>>> 
>>> I do not have cxf directory and org.apache.cxf.Logger file in my
>>> application.
>>> What should I done actually.
>>> Please suggest me.
>>> 
>>> Regards
>>> Saravanan Ramamoorthy
>>> 
>>> 
>>> Nist, Todd (IHG) 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.
>>> >
>>> > 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.
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> 
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28094947.html
>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28095684.html
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28107216.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message