To enable SOAP message logging for all the cxf endpoints and clients of an application add the below configuration to cxf-beans.xml. The cxf bus is the backbone of all cxf endpoints.
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
</cxf:bus>