Running a WebSocket application (e.g. WebSocketServer), I am getting plenty of debugging messages like this:

18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameEncoder
FEIN: Encoding WebSocket Frame opCode=1 length=20
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame opCode=1
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame length=16
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame opCode=8
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame length=2

Unfortunately I didn't find a way to deactivate them. Where can I do it?

有帮助吗?

解决方案

By default Netty use jdk logging API as its logging engine. This messages are logged via DEBUG loglevel so you just need to setup the logging to not print out debug messages for this class.

其他提示

If you are using log4j logging, just put this line inside your log4j.properties file.

log4j.logger.io.netty.handler.codec.http.websocketx = OFF
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top