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 GitHub
parent 765f8989ca
commit 57765a7e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,15 @@ public class LoggingHandler implements ChannelHandler {
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