Package org.javacord.api.util.logging
Class FallbackLoggerConfiguration
- java.lang.Object
-
- org.javacord.api.util.logging.FallbackLoggerConfiguration
-
public class FallbackLoggerConfiguration extends Object
This class can be used to configure Javacord's fallback logger.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDebugEnabled()Checks whether debug logging is enabled.static booleanisTraceEnabled()Checks whether trace logging is enabled.static voidsetDebug(boolean debug)Sets whether debug logging should be enabled.static voidsetTrace(boolean trace)Sets whether trace logging should be enabled.
-
-
-
Method Detail
-
isDebugEnabled
public static boolean isDebugEnabled()
Checks whether debug logging is enabled.- Returns:
- Whether debug logging is enabled or not.
-
setDebug
public static void setDebug(boolean debug)
Sets whether debug logging should be enabled. Disabling debug logging automatically disables trace logging, too.- Parameters:
debug- Whether debug logging should be enabled or not.
-
isTraceEnabled
public static boolean isTraceEnabled()
Checks whether trace logging is enabled.- Returns:
- Whether trace logging is enabled or not.
-
setTrace
public static void setTrace(boolean trace)
Sets whether trace logging should be enabled. Enabling trace logging automatically enables debug logging, too.- Parameters:
trace- Whether trace logging should be enabled or not.
-
-