Class Log4J2FrameLogger
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.handler.codec.http2.Http2FrameLogger
-
- com.linkedin.alpini.netty4.handlers.Log4J2FrameLogger
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
public class Log4J2FrameLogger extends io.netty.handler.codec.http2.Http2FrameLogger
Created by acurtis on 4/19/18.
-
-
Constructor Summary
Constructors Constructor Description Log4J2FrameLogger(org.apache.logging.log4j.Level level)
Log4J2FrameLogger(org.apache.logging.log4j.Level level, java.lang.Class<?> clazz)
Log4J2FrameLogger(org.apache.logging.log4j.Level level, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logData(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream)
void
logGoAway(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
void
logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream)
void
logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
void
logPing(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
void
logPingAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
void
logPriority(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
void
logPushPromise(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
void
logRstStream(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
void
logSettings(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)
void
logSettingsAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx)
void
logUnknownFrame(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf data)
void
logWindowsUpdate(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
-
-
-
Constructor Detail
-
Log4J2FrameLogger
public Log4J2FrameLogger(org.apache.logging.log4j.Level level)
-
Log4J2FrameLogger
public Log4J2FrameLogger(org.apache.logging.log4j.Level level, java.lang.String name)
-
Log4J2FrameLogger
public Log4J2FrameLogger(org.apache.logging.log4j.Level level, java.lang.Class<?> clazz)
-
-
Method Detail
-
logData
public void logData(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream)
- Overrides:
logData
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logHeaders
public void logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream)
- Overrides:
logHeaders
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logHeaders
public void logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
- Overrides:
logHeaders
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPriority
public void logPriority(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
- Overrides:
logPriority
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logRstStream
public void logRstStream(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
- Overrides:
logRstStream
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logSettingsAck
public void logSettingsAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx)
- Overrides:
logSettingsAck
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logSettings
public void logSettings(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)
- Overrides:
logSettings
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPing
public void logPing(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
- Overrides:
logPing
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPingAck
public void logPingAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
- Overrides:
logPingAck
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPushPromise
public void logPushPromise(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
- Overrides:
logPushPromise
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logGoAway
public void logGoAway(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
- Overrides:
logGoAway
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logWindowsUpdate
public void logWindowsUpdate(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
- Overrides:
logWindowsUpdate
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logUnknownFrame
public void logUnknownFrame(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf data)
- Overrides:
logUnknownFrame
in classio.netty.handler.codec.http2.Http2FrameLogger
-
-