Class NetherNetLogging
java.lang.Object
org.cloudburstmc.netty.util.nethernet.NetherNetLogging
Controls native logging before messages cross into Java, and configures supported Java backends.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe SLF4J logger libdatachannel routes its native output through. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleansetLogLevel(String level) Sets the native threshold, assetNativeLogLevel(java.lang.String)does, and NetherNet's own loggers to the same level, on Log4j2 or Logback.static booleansetNativeLogLevel(String level) Sets the native threshold and, when available, the Log4j2 or Logback logger level.
-
Field Details
-
NATIVE_LOGGER
The SLF4J logger libdatachannel routes its native output through.- See Also:
-
-
Method Details
-
setLogLevel
Sets the native threshold, assetNativeLogLevel(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
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.
-