diff --git a/handler/src/main/java/io/netty/handler/logging/LoggingHandler.java b/handler/src/main/java/io/netty/handler/logging/LoggingHandler.java index c1a45a8f5b..fa18fbf0d7 100644 --- a/handler/src/main/java/io/netty/handler/logging/LoggingHandler.java +++ b/handler/src/main/java/io/netty/handler/logging/LoggingHandler.java @@ -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