ChannelHandler that logs all events using a logging framework.
By default, all events are logged at DEBUG level and full hex dumps are recorded for ByteBufs.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufFormat | |
| private static final LogLevel | |
| protected final InternalLogLevel | |
| private final LogLevel | |
| protected final InternalLogger |
| Access | Constructor and Description |
|---|---|
| public | LoggingHandler()
Creates a new instance whose logger name is the fully qualified class name of the instance with hex dump enabled. |
| public | LoggingHandler(ByteBufFormat
Format of ByteBuf dumping format)Creates a new instance whose logger name is the fully qualified class name of the instance. |
| public | LoggingHandler(LogLevel
the log level level)Creates a new instance whose logger name is the fully qualified class name of the instance. |
| public | LoggingHandler(LogLevel
the log level level, ByteBufFormat the ByteBuf format byteBufFormat)Creates a new instance whose logger name is the fully qualified class name of the instance. |
| public | LoggingHandler(Class<?>
the class type to generate the logger for clazz)Creates a new instance with the specified logger name and with hex dump enabled. |
| public | LoggingHandler(Class<?>
the class type to generate the logger for clazz, LogLevel the log level level)Creates a new instance with the specified logger name. |
| public | LoggingHandler(Class<?>
the class type to generate the logger for clazz, LogLevel the log level level, ByteBufFormat the ByteBuf format byteBufFormat)Creates a new instance with the specified logger name. |
| public | LoggingHandler(String
the name of the class to use for the logger name)Creates a new instance with the specified logger name using the default log level. |
| public | LoggingHandler(String
the name of the class to use for the logger name, LogLevel the log level level)Creates a new instance with the specified logger name. |
| public | LoggingHandler(String
the name of the class to use for the logger name, LogLevel the log level level, ByteBufFormat the ByteBuf format byteBufFormat)Creates a new instance with the specified logger name. |