@ChannelHandler.Sharable
public class DcpLoggingHandler
extends io.netty.handler.logging.LoggingHandler
ChannelHandler that logs all events using a logging framework.
By default, all events are logged at DEBUG level.| Constructor and Description |
|---|
DcpLoggingHandler()
Creates a new instance whose logger name is the fully qualified class
name of the instance with hex dump enabled.
|
DcpLoggingHandler(Class<?> clazz)
Creates a new instance with the specified logger name and with hex dump
enabled.
|
DcpLoggingHandler(Class<?> clazz,
io.netty.handler.logging.LogLevel level)
Creates a new instance with the specified logger name.
|
DcpLoggingHandler(io.netty.handler.logging.LogLevel level)
Creates a new instance whose logger name is the fully qualified class
name of the instance.
|
DcpLoggingHandler(String name)
Creates a new instance with the specified logger name.
|
DcpLoggingHandler(String name,
io.netty.handler.logging.LogLevel level)
Creates a new instance with the specified logger name.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(io.netty.channel.ChannelHandlerContext ctx,
String eventName,
Object arg) |
bind, byteBufFormat, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, format, format, level, userEventTriggered, writeensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic DcpLoggingHandler()
public DcpLoggingHandler(io.netty.handler.logging.LogLevel level)
level - the log levelpublic DcpLoggingHandler(Class<?> clazz)
public DcpLoggingHandler(Class<?> clazz, io.netty.handler.logging.LogLevel level)
level - the log levelpublic DcpLoggingHandler(String name)
public DcpLoggingHandler(String name, io.netty.handler.logging.LogLevel level)
level - the log levelCopyright © 2021 Couchbase, Inc.. All rights reserved.