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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Log a info message, if thedebug
option is enabled in theconfig.yml
filestatic void
Log a simple info message with the plugin syntax.static void
logException(Exception exception, String logMessage)
Logs a general exception with the general syntax.static void
logInvalidConfigurationException(org.bukkit.configuration.InvalidConfigurationException exception, String logMessage)
Logs an InvalidConfigurationException for YAML configurations.static void
logIOException(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 thedebug
option is enabled in theconfig.yml
file- Parameters:
message
- The message that should be logged.
-