ByteBufFormat constructor for LoggingHandler (#11420)

__Motivation__

`LoggingHandler` misses a constructor variant that only takes `ByteBufFormat`

__Modification__

Added the missing constructor variant.

__Result__

`LoggingHandler` can be constructed with `ByteBufFormat` only.

Co-authored-by: Nitesh Kant <nitesh_kant@apple.com>
This commit is contained in:
Unev 2021-06-29 22:54:16 +05:30 committed by NiteshKant
parent d99a8f75b4
commit d8ad931488

View File

@ -56,6 +56,15 @@ public class LoggingHandler extends ChannelDuplexHandler {
public LoggingHandler() {
this(DEFAULT_LEVEL);
}
/**
* Creates a new instance whose logger name is the fully qualified class
* name of the instance.
*
* @param format Format of ByteBuf dumping
*/
public LoggingHandler(ByteBufFormat format) {
this(DEFAULT_LEVEL, format);
}
/**
* Creates a new instance whose logger name is the fully qualified class