title: Apache CXF Logging
body: <p>I have some problems with my server-client communication via web services with <code>Apache CXF framework</code>. I want to log the server errors to an external file instead of terminal. Piece of code for server;</p>
  
  <pre><code>server= new JaxwsNotificationBroker("Hello",..);
  server.setAddress("http://localhost:" + brokerPort + "/wsn/NotificationBroker");
  </code></pre>
  
  <p>And I tried this for logging;</p>
  
  <pre><code>server.getInInterceptors().add(new LoggingInInterceptor());
  server.getOutInterceptors().add(new LoggingOutInterceptor());
  </code></pre>
  
  <p>But it gives the error <code>The method getInInterceptors() is undefined for the type JaxwsNotificationBroker</code>. </p>
  
  <p>Is there any method to log the errors for <code>JaxwsNotificationBroker</code>?</p>
  
  <p>Thank you</p>