One way to do this is to stick into your target/test-classes dir, a cxf.xml file that looks something like:

<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:cxf="http://cxf.apache.org/core";
xsi:schemaLocation=" http://cxf.apache.org/core 
http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd ">
<cxf:bus>
  <cxf:features>
    <cxf:logging/>
  </cxf:features>
</cxf:bus>
</beans>


You could also add an annotation like:
@Features(features = {"org.apache.cxf.feature.LoggingFeature"})
to your SEI interfaces or Test servers or similar.

Dan




On May 29, 2008, at 10:41 AM, Cord Awtry wrote:

All,

I'm running a junit test that calls several remote webservices using cxf. I've been beating my head against a wall trying to figure out to get cxf to log, on my local machine, the messages it's sending. Any thoughts on how to
do this properly?

 Thanks a lot,

   -C-

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to