You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by STEVEN THEIN <st...@oracle.com> on 2011/06/08 16:17:29 UTC

cxf:logging not working...

Hi,

I had the following defined in my cxf.xml file. When I run our Web 
Services using Web Logic 11gR3, the request and response messages are 
not written out  to the console.
Is there any thing,  I need to configure on CXF side or on WebLogic side?

<cxf:bus>

<cxf:features>

<cxf:logging />

</cxf:features>
</cxf:bus>

Thanks
Steve

Re: cxf:logging not working...

Posted by STEVEN THEIN <st...@oracle.com>.
Thanks Aki,
It will be a good start.

Steve

On 6/9/2011 7:24 AM, Aki Yoshida wrote:
> Hi,
> I am not familiar with Web Logic and don't know how to set its logging.
>
> If you want to see the Logging interceptor writing to the console, you
> need to tell the web logic's logging component to log the following
> components to the console with log level INFO.
>
> org.apache.cxf.interceptor.LoggingInInterceptor
> org.apache.cxf.interceptor.LoggingOutInterceptor
>
> regards, aki
>
> 2011/6/8 STEVEN THEIN<st...@oracle.com>:
>> Hi,
>>
>> I had the following defined in my cxf.xml file. When I run our Web Services
>> using Web Logic 11gR3, the request and response messages are not written out
>>   to the console.
>> Is there any thing,  I need to configure on CXF side or on WebLogic side?
>>
>> <cxf:bus>
>>
>> <cxf:features>
>>
>> <cxf:logging />
>>
>> </cxf:features>
>> </cxf:bus>
>>
>> Thanks
>> Steve
>>

Re: cxf:logging not working...

Posted by Daniel Kulp <dk...@apache.org>.

By default, CXF doesn't use log4j, it uses java.util.Logging.   Thus, you 
would need to configure that.

Alternatively, with CXF 2.4.x you may be able to add slf4j-log4j jar (to 
replace the slf4j-jdk14 jar) and CXF should pick up that it's logging to log4j 
and go that way.

Dan


On Friday, June 10, 2011 8:51:46 AM STEVEN THEIN wrote:
> Hi
> 
> I have the following setup in my log4j.properties file.
> 
> log4j.rootLogger=warn, console
> 
> ## Output cxf logging information to console
> log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor=info, console
> log4j.logger.org.apache.cxf.interceptor.LoggingOutInterceptor=info, console
> 
> ## console out put configuration
> log4j.appender.console=org.apache.log4j.ConsoleAppender
> log4j.appender.console.Target=System.out
> log4j.appender.console.layout=org.apache.log4j.PatternLayout
> log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p
> %c{1}:%L - %m%n
> 
> 
> Even if I commented out cxf logging in cxf.xml file, it still output the
> request/response messages to Web Logic console. Is this a bug?
> 
> <cxf:bus>
> 
> <cxf:features>
> 
> <!-- cxf:logging / -->
> 
> </cxf:features>
> </cxf:bus>
> 
> 
> Thanks
> Steve
> 
> On 6/9/2011 7:24 AM, Aki Yoshida wrote:
> > Hi,
> > I am not familiar with Web Logic and don't know how to set its logging.
> > 
> > If you want to see the Logging interceptor writing to the console, you
> > need to tell the web logic's logging component to log the following
> > components to the console with log level INFO.
> > 
> > org.apache.cxf.interceptor.LoggingInInterceptor
> > org.apache.cxf.interceptor.LoggingOutInterceptor
> > 
> > regards, aki
> > 
> > 2011/6/8 STEVEN THEIN<st...@oracle.com>:
> >> Hi,
> >> 
> >> I had the following defined in my cxf.xml file. When I run our Web
> >> Services using Web Logic 11gR3, the request and response messages are
> >> not written out
> >> 
> >>   to the console.
> >> 
> >> Is there any thing,  I need to configure on CXF side or on WebLogic
> >> side?
> >> 
> >> <cxf:bus>
> >> 
> >> <cxf:features>
> >> 
> >> <cxf:logging />
> >> 
> >> </cxf:features>
> >> </cxf:bus>
> >> 
> >> Thanks
> >> Steve

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: cxf:logging not working...

Posted by STEVEN THEIN <st...@oracle.com>.
Hi

I have the following setup in my log4j.properties file.

log4j.rootLogger=warn, console

## Output cxf logging information to console
log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor=info, console
log4j.logger.org.apache.cxf.interceptor.LoggingOutInterceptor=info, console

## console out put configuration
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.Target=System.out
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p 
%c{1}:%L - %m%n


Even if I commented out cxf logging in cxf.xml file, it still output the 
request/response messages to Web Logic console. Is this a bug?

<cxf:bus>

<cxf:features>

<!-- cxf:logging / -->

</cxf:features>
</cxf:bus>


Thanks
Steve


On 6/9/2011 7:24 AM, Aki Yoshida wrote:
> Hi,
> I am not familiar with Web Logic and don't know how to set its logging.
>
> If you want to see the Logging interceptor writing to the console, you
> need to tell the web logic's logging component to log the following
> components to the console with log level INFO.
>
> org.apache.cxf.interceptor.LoggingInInterceptor
> org.apache.cxf.interceptor.LoggingOutInterceptor
>
> regards, aki
>
> 2011/6/8 STEVEN THEIN<st...@oracle.com>:
>> Hi,
>>
>> I had the following defined in my cxf.xml file. When I run our Web Services
>> using Web Logic 11gR3, the request and response messages are not written out
>>   to the console.
>> Is there any thing,  I need to configure on CXF side or on WebLogic side?
>>
>> <cxf:bus>
>>
>> <cxf:features>
>>
>> <cxf:logging />
>>
>> </cxf:features>
>> </cxf:bus>
>>
>> Thanks
>> Steve
>>

Re: cxf:logging not working...

Posted by Aki Yoshida <el...@googlemail.com>.
Hi,
I am not familiar with Web Logic and don't know how to set its logging.

If you want to see the Logging interceptor writing to the console, you
need to tell the web logic's logging component to log the following
components to the console with log level INFO.

org.apache.cxf.interceptor.LoggingInInterceptor
org.apache.cxf.interceptor.LoggingOutInterceptor

regards, aki

2011/6/8 STEVEN THEIN <st...@oracle.com>:
> Hi,
>
> I had the following defined in my cxf.xml file. When I run our Web Services
> using Web Logic 11gR3, the request and response messages are not written out
>  to the console.
> Is there any thing,  I need to configure on CXF side or on WebLogic side?
>
> <cxf:bus>
>
> <cxf:features>
>
> <cxf:logging />
>
> </cxf:features>
> </cxf:bus>
>
> Thanks
> Steve
>

Re: cxf:logging not working...

Posted by STEVEN THEIN <st...@oracle.com>.
Any suggestion on why I can't get any out put on the server console?

Thanks
Steve

On 6/8/2011 10:17 AM, STEVEN THEIN wrote:
> Hi,
>
> I had the following defined in my cxf.xml file. When I run our Web 
> Services using Web Logic 11gR3, the request and response messages are 
> not written out  to the console.
> Is there any thing,  I need to configure on CXF side or on WebLogic side?
>
> <cxf:bus>
>
> <cxf:features>
>
> <cxf:logging />
>
> </cxf:features>
> </cxf:bus>
>
> Thanks
> Steve