Class CyberLogUtils

java.lang.Object
com.github.cyberryan1.cybercore.spigot.utils.CyberLogUtils

public final class CyberLogUtils extends Object
Logging utilities
  • Constructor Details

    • CyberLogUtils

      public CyberLogUtils()
  • Method Details

    • logDebug

      public static void logDebug(String msg)
      Logs a debug message, if the isLoggingDebug() method is true
      Parameters:
      msg - The message to log
    • logInfo

      public static void logInfo(String msg)
      Logs an info message
      Parameters:
      msg - The message to log
    • logWarn

      public static void logWarn(String msg)
      Logs a warning message
      Parameters:
      msg - The message to log
    • logError

      public static void logError(String msg)
      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