netty5/handler/src/main/java/io/netty/handler/logging
Bennett Lynch 4950a2fb43 Add ByteBufFormat option to LoggingHandler (#9915)
Motivation

LoggingHandler is a very useful tool for debugging and for tracking the
sequence of events in a pipeline. LoggingHandler also includes the
functionality to log a hex dump of all written and received ByteBufs.
This can be useful for small messages, but for large messages, this can
potentially result in extremely large logs. E.g., a 1 MB payload will
result in over a 1 MB log message being recorded. While LoggingHandler
may only be intended for debugging, this can still be too excessive in
some debugging scenarios.

Modifications

* Create a new ByteBufFormat enum that allows users to specify "SIMPLE"
or "HEX_DUMP" logging for ByteBufs.
* For all constructors that currently accept a LogLevel parameter,
create new overloaded constructors that also accept this enum as a
parameter.
* Continue to record hex dumps by default.

Result

Users will be able to opt out of full hex dump recording, if they wish
to.
2020-01-23 16:58:35 -08:00
..
ByteBufFormat.java Add ByteBufFormat option to LoggingHandler (#9915) 2020-01-23 16:58:35 -08:00
LoggingHandler.java Add ByteBufFormat option to LoggingHandler (#9915) 2020-01-23 16:58:35 -08:00
LogLevel.java Using public LogLevel for HTTP/2 frame logging. 2015-03-17 15:10:35 -07:00
package-info.java Synchronized between 4.1 and master 2014-04-25 00:38:02 +09:00