Class WireLoggingInitializer

java.lang.Object
io.servicetalk.transport.netty.internal.WireLoggingInitializer
All Implemented Interfaces:
ChannelInitializer

public class WireLoggingInitializer extends Object implements ChannelInitializer
A ChannelInitializer that enables wire-logging for all channels. All wire events will be logged at trace level.
  • Constructor Details

    • WireLoggingInitializer

      public WireLoggingInitializer(String loggerName, LogLevel logLevel, BooleanSupplier logUserData)
      Create an instance.
      Parameters:
      loggerName - The logger name to use for log wire events.
      logLevel - The level to log at.
      logUserData - true to log user data. false to not log user data.
  • Method Details

    • init

      public void init(io.netty.channel.Channel channel)
      Description copied from interface: ChannelInitializer
      Configures the passed Channel.

      Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.

      Specified by:
      init in interface ChannelInitializer
      Parameters:
      channel - Netty Channel.