How to disable additional registration?

I have a Java service that uses Spring and CXF. The code is from a previous developer, and I provide the service, but I see it in the logs

-------------------------------------- Apr 16, 2013 1:44:11 PM org.apache.cxf.interceptor.AbstractLoggingInterceptor log INFO: Inbound Message ---------------------------- ID: 33 Address: /MyApplication/endpoint Encoding: UTF-8 Http-Method: POST Content-Type: application/x-www-form-urlencoded Headers: {content-type=[application/x-www-form-urlencoded], connection=[close], host= [localhost:8080], Content-Length=[11504], user-agent=[Apache-HttpClient/4.2.3 (java 1.5)], Content-Type=[application/x-www-form-urlencoded]} Payload: { "events" : [ { event }, { event }, ... ] } 

And we have too many events, and the magazine is becoming unmanageable. Is there any way to disable this log? These log calls are not created from the application, they are created by some kind of interceptor that I cannot find. I found this in the cxf-context.xml configuration file:

 <cxf:bus> <cxf:features> <cxf:logging /> </cxf:features> </cxf:bus> 

But the entry still appears after I have already commented on these lines from the configuration file.

Please, help. Thanks

+4
source share
1 answer

Since the application uses log4j, turn the Logger level 'org.apache.cxf' to ERROR. Add this line to log4j.properties:

 log4j.logger.org.apache.cxf=ERROR 
+11
source

All Articles