LoggingHandler in order to provide extended connection id, which in case of HTTP
adds the serial number of the request received on that connection.
In case of AdvancedByteBufFormat#TEXTUAL logs all events in a
textual representation, so it's human readable and less verbose.
Hint: Logger escapes newlines as "\n" to reduce output.
| Modifier and Type | Field and Description |
|---|---|
| private final AdvancedByteBufFormat | |
| pack-priv static final char | |
| pack-priv static final char | |
| private final Charset | |
| private final String | |
| pack-priv static final String | |
| pack-priv static final int | |
| pack-priv static final char |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReactorNettyLoggingHandler(String
the name of the class to use for the logger name, LogLevel the log level level, AdvancedByteBufFormat the byte buffer format byteBufFormat)Creates a new instance with the specified logger name, level and byte buffer format. |
| pack-priv | ReactorNettyLoggingHandler(final String
the name of the class to use for the logger name, final LogLevel the log level level, final Charset the charset used to decode the ByteBuf charset)Creates a new instance with the specified logger name, level and charset. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBufFormat | byteBufFormat()
Overrides io. ByteBufFormat that this handler uses to log
|
| private String | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| protected String | format(ChannelHandlerContext ctx, String
the name of the event eventName)
Formats an event and returns the formatted message.
|
| protected String | format(ChannelHandlerContext ctx, String
the name of the event eventName, Object the argument of the event arg)
Formats an event and returns the formatted message.
|
| protected String | format(ChannelHandlerContext ctx, String
the name of the event eventName, Object the first argument of the event firstArg, Object the second argument of the event secondArg)
Formats an event and returns the formatted message.
|
| private String | formatByteBuf(ChannelHandlerContext ctx, String eventName, ByteBuf msg)
Hides io. ByteBuf.
|
| private String | formatByteBufHolder(ChannelHandlerContext ctx, String eventName, ByteBufHolder msg)
Hides io. ByteBufHolder.
|
| private String | formatSimple(ChannelHandlerContext ctx, String eventName, Object msg)
Generates the default log message of the specified event whose argument is an arbitrary object.
|
| public int |
| byteBufFormat | back to summary |
|---|---|
| private final AdvancedByteBufFormat byteBufFormat Hides io. | |
| CHANNEL_ID_PREFIX | back to summary |
|---|---|
| pack-priv static final char CHANNEL_ID_PREFIX | |
| CHANNEL_ID_SUFFIX | back to summary |
|---|---|
| pack-priv static final char CHANNEL_ID_SUFFIX | |
| charset | back to summary |
|---|---|
| private final Charset charset | |
| name | back to summary |
|---|---|
| private final String name | |
| ORIGINAL_CHANNEL_ID_PREFIX | back to summary |
|---|---|
| pack-priv static final String ORIGINAL_CHANNEL_ID_PREFIX | |
| ORIGINAL_CHANNEL_ID_PREFIX_LENGTH | back to summary |
|---|---|
| pack-priv static final int ORIGINAL_CHANNEL_ID_PREFIX_LENGTH | |
| TRACE_ID_PREFIX | back to summary |
|---|---|
| pack-priv static final char TRACE_ID_PREFIX | |
| ReactorNettyLoggingHandler | back to summary |
|---|---|
| pack-priv ReactorNettyLoggingHandler(String name, LogLevel level, AdvancedByteBufFormat byteBufFormat) Creates a new instance with the specified logger name, level and byte buffer format.
| |
| ReactorNettyLoggingHandler | back to summary |
|---|---|
| pack-priv ReactorNettyLoggingHandler(final String name, final LogLevel level, final Charset charset) Creates a new instance with the specified logger name, level and charset.
The byte buffer format is | |
| byteBufFormat | back to summary |
|---|---|
| public ByteBufFormat byteBufFormat() Overrides io. Doc from io. Returns the
| |
| channelString | back to summary |
|---|---|
| private String channelString(Channel channel) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| format | back to summary |
|---|---|
| protected String format(ChannelHandlerContext ctx, String eventName) Overrides io. Doc from io. Formats an event and returns the formatted message. | |
| format | back to summary |
|---|---|
| protected String format(ChannelHandlerContext ctx, String eventName, Object arg) Overrides io. Doc from io. Formats an event and returns the formatted message. | |
| format | back to summary |
|---|---|
| protected String format(ChannelHandlerContext ctx, String eventName, Object firstArg, Object secondArg) Overrides io. Doc from io. Formats an event and returns the formatted message. This method is currently only used for formatting
| |
| formatByteBuf | back to summary |
|---|---|
| private String formatByteBuf(ChannelHandlerContext ctx, String eventName, ByteBuf msg) Hides io. Doc from io. Generates the default log message of the specified event whose argument is a | |
| formatByteBufHolder | back to summary |
|---|---|
| private String formatByteBufHolder(ChannelHandlerContext ctx, String eventName, ByteBufHolder msg) Hides io. Doc from io. Generates the default log message of the specified event whose argument is a | |
| formatSimple | back to summary |
|---|---|
| private String formatSimple(ChannelHandlerContext ctx, String eventName, Object msg) Hides io. Doc from io. Generates the default log message of the specified event whose argument is an arbitrary object. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |