Class CyberLogUtils
java.lang.Object
com.github.cyberryan1.cybercore.spigot.utils.CyberLogUtils
Logging utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static void
Logs a debug message, if theisLoggingDebug()
method is truestatic void
Logs an error messagestatic void
Logs an info messagestatic void
Logs a warning messagestatic void
setDebugLogging
(boolean b) Sets whether debug logs or enabled
-
Constructor Details
-
CyberLogUtils
public CyberLogUtils()
-
-
Method Details
-
logDebug
Logs a debug message, if theisLoggingDebug()
method is true- Parameters:
msg
- The message to log
-
logInfo
Logs an info message- Parameters:
msg
- The message to log
-
logWarn
Logs a warning message- Parameters:
msg
- The message to log
-
logError
Logs an error message- Parameters:
msg
- The message to log
-
setDebugLogging
public static void setDebugLogging(boolean b) Sets whether debug logs or enabled- Parameters:
b
- True to enable debug logs, false otherwise
-
isLoggingDebug
public static boolean isLoggingDebug()- Returns:
- True if debug logs are enabled, false otherwise
-