STOMP: log4j2 improvements
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 27 Aug 2016 22:02:53 +0000 (00:02 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 27 Aug 2016 22:02:53 +0000 (00:02 +0200)
SpringJava/STOMP/spring-stomp-server-simple/src/main/resources/log4j2.xml

index 5b83466..234eec5 100644 (file)
                        level="INFO" additivity="false">
             <AppenderRef ref="STDOUT" />
         </Logger>
+
+
+       <!-- 
+               SockJS logs. Requires TRACE or DEBUG levels.
+       -->
+        <Logger
+               name="org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator"
+                       level="TRACE" additivity="false">
+            <AppenderRef ref="STDOUT" />
+        </Logger>
+
+       <!-- 
+               SockJS Exceptions. Requires ERROR or DEBUG levels.
+       -->
+        <Logger
+               name="org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator"
+                       level="DEBUG" additivity="false">
+            <AppenderRef ref="STDOUT" />
+        </Logger>
        
        
-        <!-- 
+       <!-- 
                SockJS client disconnects. Requires TRACE level always.
                It works because I know for sure I will be using WebSockets when using SockJS.
-        -->
+       -->
         <Logger
                name="org.springframework.web.socket.sockjs.transport.session.WebSocketServerSockJsSession"
                        level="TRACE" additivity="false">