Tuesday, November 15, 2011

Enables/Disable CXF Logging (payload)

I was using Apache CXF web-service framework. Its usually good to have logging enabled in applications. But with cxf I observed that cxf keeps logging the payload of every response received from a web-service. The web service was returning images which massively affected the size of log files. I used log4j logger to log the messages and removed the cxf logging.


To remove cxf logging just comment out or remove code the following code from your cxf configuration xml file.
   
          
                            
  
        
            
        
  

No comments:

Post a Comment