Class DcpLoggingHandler
java.lang.Object
com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelDuplexHandler
com.couchbase.client.core.deps.io.netty.handler.logging.LoggingHandler
com.couchbase.client.dcp.transport.netty.DcpLoggingHandler
- All Implemented Interfaces:
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler,com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandler,com.couchbase.client.core.deps.io.netty.channel.ChannelOutboundHandler
@Sharable
public class DcpLoggingHandler
extends com.couchbase.client.core.deps.io.netty.handler.logging.LoggingHandler
A
ChannelHandler that logs all events using a logging framework.
By default, all events are logged at DEBUG level.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.deps.io.netty.channel.ChannelHandler
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class com.couchbase.client.core.deps.io.netty.handler.logging.LoggingHandler
internalLevel, logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance whose logger name is the fully qualified class name of the instance with hex dump enabled.DcpLoggingHandler(com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance whose logger name is the fully qualified class name of the instance.DcpLoggingHandler(Class<?> clazz) Creates a new instance with the specified logger name and with hex dump enabled.DcpLoggingHandler(Class<?> clazz, com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance with the specified logger name.DcpLoggingHandler(String name) Creates a new instance with the specified logger name.DcpLoggingHandler(String name, com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance with the specified logger name. -
Method Summary
Methods inherited from class com.couchbase.client.core.deps.io.netty.handler.logging.LoggingHandler
bind, byteBufFormat, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, format, format, level, userEventTriggered, writeMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelDuplexHandler
readMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.couchbase.client.core.deps.io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
DcpLoggingHandler
public DcpLoggingHandler()Creates a new instance whose logger name is the fully qualified class name of the instance with hex dump enabled. -
DcpLoggingHandler
public DcpLoggingHandler(com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance whose logger name is the fully qualified class name of the instance.- Parameters:
level- the log level
-
DcpLoggingHandler
Creates a new instance with the specified logger name and with hex dump enabled. -
DcpLoggingHandler
public DcpLoggingHandler(Class<?> clazz, com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance with the specified logger name.- Parameters:
level- the log level
-
DcpLoggingHandler
Creates a new instance with the specified logger name. -
DcpLoggingHandler
public DcpLoggingHandler(String name, com.couchbase.client.core.deps.io.netty.handler.logging.LogLevel level) Creates a new instance with the specified logger name.- Parameters:
level- the log level
-
-
Method Details