Class NetherNetLogging

java.lang.Object
org.cloudburstmc.netty.util.nethernet.NetherNetLogging

public final class NetherNetLogging extends Object
Controls native logging before messages cross into Java, and configures supported Java backends.
  • Field Details

    • NATIVE_LOGGER

      public static final String NATIVE_LOGGER
      The SLF4J logger libdatachannel routes its native output through.
      See Also:
  • Method Details

    • setLogLevel

      public static boolean setLogLevel(String level)
      Sets the native threshold, as setNativeLogLevel(java.lang.String) does, and NetherNet's own loggers to the same level, on Log4j2 or Logback. DEBUG then also shows what signaling, STUN discovery and the channels do, which an operator can turn on to send a log.
      Parameters:
      level - One of OFF, ERROR, WARN, INFO, DEBUG, TRACE or ALL
      Returns:
      true if the native threshold was set, false if the level was invalid.
    • setNativeLogLevel

      public static boolean setNativeLogLevel(String level)
      Sets the native threshold and, when available, the Log4j2 or Logback logger level.
      Parameters:
      level - One of OFF, ERROR, WARN, INFO, DEBUG, TRACE or ALL. WARN is a good default.
      Returns:
      true if the native threshold was set, false if the level was invalid.