title: How to log CXF webservice requests to a different logfile?
body: <p>How can I log all soap <code>CXF</code> xml requests to a different file than any other logging within my application?</p>
  
  <pre><code>log4j.rootLogger=INFO, console, MyFileAppender
  
  log4j.logger.org.apache.cxf=INFO, console
  log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor=INFO, console
  log4j.logger.org.apache.cxf.interceptor.LoggingOutInterceptor=INFO, console
  
  log4j.appender.console=org.apache.log4j.ConsoleAppender
  log4j.appender.console.Threshold=INFO
  
  log4j.appender.MyFileAppender=org.apache.log4j.RollingFileAppender
  log4j.appender.MyFileAppender.Append=true
  log4j.appender.MyFileAppender.Threshold=INFO
  log4j.appender.MyFileAppender.File=c:/logs/logs.txt
  </code></pre>
  
  <p>Currently all logs go to the same file. I'd like to separate only the requests logging.</p>
  
  <p>The general logging is done with: 
  <code>Logger.getRootLogger().fatal("UNEXPECTED ERROR:", e);</code></p>
  
  <p>The CXF though just works by these interceptors. I'm not calling a specific logger myself to log the requests.</p>
  
  <p>How can I write them to a different logfile? They should <em>only</em> appear in this file, and not in the general logfile anymore!</p>