Package com.github.mafelp.utils
Class Logging
java.lang.Object
com.github.mafelp.utils.Logging
Logging class to make logging easier and implement a global logging syntax.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog a info message, if thedebugoption is enabled in theconfig.ymlfilestatic voidLog a simple info message with the plugin syntax.static voidlogException(Exception exception, String logMessage)Logs a general exception with the general syntax.static voidlogInvalidConfigurationException(org.bukkit.configuration.InvalidConfigurationException exception, String logMessage)Logs an InvalidConfigurationException for YAML configurations.static voidlogIOException(IOException exception, String logMessage)Logs an IOException with the general syntax.
-
Constructor Details
-
Logging
public Logging()
-
-
Method Details
-
logException
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
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
Log a simple info message with the plugin syntax.- Parameters:
message- The message that should be logged.
-
debug
Log a info message, if thedebugoption is enabled in theconfig.ymlfile- Parameters:
message- The message that should be logged.
-