BiJ*_*BiJ 5 java logging sockjs spring-boot spring-websocket
我有一个使用 SockJs 启用 Websocket 的 Spring Boot 应用程序。一切正常,但它一直在控制台中记录以下消息。
2017-09-19 11:04:48.164 INFO 8856 --- [MessageBroker-4] o.s.w.s.c.WebSocketMessageBrokerStats : WebSocketSession[1 current WS(1)-HttpStream(0)-HttpPoll(0), 3 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(3)-CONNECTED(3)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 45], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 22], sockJsScheduler[pool size = 4, active threads = 1, queued tasks = 2, completed tasks = 65909]
Run Code Online (Sandbox Code Playgroud)
日志的意义是什么,如何仅禁用这些类型的日志记录?
尝试在以下配置中使用application.properties:
logging.level.org.springframework.web.socket.config.WebSocketMessageBrokerStats = ERROR
Run Code Online (Sandbox Code Playgroud)
这将升级此特定类的日志。
| 归档时间: |
|
| 查看次数: |
4164 次 |
| 最近记录: |