Class Logging

java.lang.Object
com.github.mafelp.utils.Logging

public class Logging extends Object
Logging class to make logging easier and implement a global logging syntax.
  • Constructor Details

    • Logging

      public Logging()
  • Method Details

    • logException

      public static void logException(Exception exception, String logMessage)
      Logs a general exception with the general syntax.
      Parameters:
      exception - The exception that should be logged.
      logMessage - The message that should be logged before the error to describe, where the error occurred.
    • logIOException

      public static void logIOException(IOException exception, String logMessage)
      Logs an IOException with the general syntax.
      Parameters:
      exception - The exception that should be logged.
      logMessage - The message that should be logged before the error to describe, where the error occurred.
    • logInvalidConfigurationException

      public static void logInvalidConfigurationException(org.bukkit.configuration.InvalidConfigurationException exception, String logMessage)
      Logs an InvalidConfigurationException for YAML configurations. - Normally this method will not be called.
      Parameters:
      exception - The exception that should be logged.
      logMessage - The message that should be logged before the error to describe, where the error occurred.
    • info

      public static void info(String message)
      Log a simple info message with the plugin syntax.
      Parameters:
      message - The message that should be logged.
    • debug

      public static void debug(String message)
      Log a info message, if the debug option is enabled in the config.yml file
      Parameters:
      message - The message that should be logged.