Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.netty.handler.codec.http2.Http2FrameLogger

        io.netty.handler.codec.http2.Http2FrameLogger.Direction
      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • 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)  
      • Methods inherited from class io.netty.handler.codec.http2.Http2FrameLogger

        isEnabled
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.netty.handler.codec.http2.Http2FrameLogger