title: CXF request response logging using log4j: debug
body: <p>I am trying to enable logging for cxf framework in weblogic application server along with log4j.</p>
  
  <p>I have placed cxf.xml in domain home and have modified setdomainenv to add cxf.xml entry -Dcxf.config.file.url=cxf.xml. 
  I am setting System.setProperty("org.apache.cxf.Logger", "org.apache.cxf.common.logging.Log4jLogger") before making a webservice call and i have tried configuring all 3 types of configuration specified in <a href="http://cxf.apache.org/docs/configuration.html" rel="nofollow">http://cxf.apache.org/docs/configuration.html</a>. But nothing seems to work. </p>
  
  <p>I even tried creating <code>org.apache.cxf.Logger</code> file containing  value <code>org.apache.cxf.common.logging.Log4jLogger</code>.</p>
  
  <p>my <code>log4j.properties</code>
      log4j.rootLogger = DEBUG, FILE
      log4j.logger.org.apache.cxf=DEBUG
      log4j.appender.FILE=org.apache.log4j.FileAppender
      log4j.appender.FILE.File=&lt;>/logFile.log
      log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
      log4j.appender.FILE.layout.conversionPattern=%m%n</p>
  
  <p><code>CXF version: 2.7.5</code></p>
  
  <p>Please suggest if there is change required for me to log both request and response xml?</p>