Class LogConfig

java.lang.Object
io.vertx.core.net.LogConfig

@Unstable public class LogConfig extends Object
Generic purpose logging of network operations configuration.
Author:
Julien Viet
  • Constructor Details

    • LogConfig

      public LogConfig()
    • LogConfig

      public LogConfig(LogConfig other)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns:
      when logging is enabled
    • setEnabled

      public LogConfig setEnabled(boolean enabled)
      Set to true to enable logging: Netty's pipeline is configured for logging on Netty's logger.
      Parameters:
      enabled - true for logging the network activity
      Returns:
      a reference to this, so the API can be used fluently
    • getDataFormat

      public ByteBufFormat getDataFormat()
      Returns:
      per stream Netty's logging handler's data format.
    • setDataFormat

      public LogConfig setDataFormat(ByteBufFormat dataFormat)
      Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
      Parameters:
      dataFormat - the format to use
      Returns:
      a reference to this, so the API can be used fluently