cxf: right log4j2 configuration
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 01:07:01 +0000 (02:07 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 01:07:01 +0000 (02:07 +0100)
cxf/web-services-spring-cxf-client/src/main/resources/log4j2.xml
cxf/web-services-spring-cxf-server/src/main/resources/log4j2.xml

index 71862d1..5aa51de 100644 (file)
     
         <!-- 
                Specific log when request message from this client or response message created by remote server contains validation errors.
-               It is used by org.springframework.ws.client.support.interceptor.PayloadValidatingInterceptor
+               
+               see client-spring-configuration.xml Spring configuration file.
+               
+               This configuration enables us to log validation errors of data sent from this client or data sent by remote server.
          -->
-        <Logger name="org.springframework.ws.client.support.interceptor.AbstractValidatingInterceptor" level="INFO" additivity="false">
+        <Logger name="org.springframework.ws.client.support.interceptor.PayloadValidatingInterceptor" level="INFO" additivity="false">
             <AppenderRef ref="STDOUT" />
         </Logger>
 
+        <!-- Specific log level for SOAP XML messages.
+                
+                see client-spring-configuration.xml Spring configuration file.
+                
+                This configuration enables us to log the SOAP XML Request (sent from this client), Response (sent by remote server) and Fault (sent by remote server).
+       -->
+               <Logger name="org.springframework.ws.client.MessageTracing" level="TRACE" additivity="false">
+                       <AppenderRef ref="STDOUT" />
+        </Logger>
+        <Logger name="org.springframework.ws.server.MessageTracing" level="TRACE" additivity="false">
+               <AppenderRef ref="STDOUT" />
+               </Logger>
         
         <!-- 
                Specific log level for Spring WS.
index 91fa662..28a4ed7 100644 (file)
     
         <!-- 
                Specific log when request message from remote client or response message created by this server contains validation errors.
-               It is used by org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor
                
                see soap-ws.xml Spring configuration file.
                
                This configuration enables us to log validation errors of data sent from remote client or data created by this server.
          -->
-        <Logger name="org.springframework.ws.soap.server.endpoint.interceptor.AbstractFaultCreatingValidatingInterceptor" level="INFO" additivity="false">
+        <Logger name="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor" level="INFO" additivity="false">
             <AppenderRef ref="STDOUT" />
         </Logger>
         
         
         <!-- Specific log level for SOAP SoapEnvelopeLoggingInterceptor.
-                org.springframework.ws.soap.server.endpoint.SoapEnvelopeLoggingInterceptor
                 
                 see soap-ws.xml Spring configuration file.
                 
                 This configuration enables us to log the SOAP XML Request (received from remote client), Response (sent by this server) and Fault (sent by this server).
        -->
-        <Logger name="org.springframework.ws.server.endpoint.AbstractLoggingInterceptor" level="INFO" additivity="false">
+        <Logger name="org.springframework.ws.soap.server.endpoint.interceptor.SoapEnvelopeLoggingInterceptor" level="INFO" additivity="false">
             <AppenderRef ref="STDOUT" />
         </Logger>