Configure Log4j with CXF explains step by step details of configuring Log4j and Apache CXF Webservice.
For every application logging has a vital role because it is a must for various debugging purpose, CXF framework have in-built feature for enabling logging of request and response payloads
log4j is commonly used logging framework in java, this tutorial is using log4j as the logging tool.
You can also see server side/client side logging Apache CXF Logging
Here I am showing How to use Log4j for logging CXF soap messages