jaxb2: right log4j2 configuration
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 00:59:37 +0000 (01:59 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 00:59:37 +0000 (01:59 +0100)
jaxb2/web-services-spring-jaxb2-client/src/main/resources/log4j2.xml
jaxb2/web-services-spring-jaxb2-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>