Package com.github.mafelp.utils
Class Logging
java.lang.Object
com.github.mafelp.utils.Logging
public class Logging
extends java.lang.Object
Logging class to make logging easier and implement a global logging syntax.
-
Constructor Summary
Constructors Constructor Description Logging()
-
Method Summary
Modifier and Type Method Description static void
debug(java.lang.String message)
Log a info message, if thedebug
option is enabled in theconfig.yml
filestatic void
info(java.lang.String message)
Log a simple info message with the plugin syntax.static void
logException(java.lang.Exception exception, java.lang.String logMessage)
Logs a general exception with the general syntax.static void
logInvalidConfigurationException(org.bukkit.configuration.InvalidConfigurationException exception, java.lang.String logMessage)
Logs an InvalidConfigurationException for YAML configurations.static void
logIOException(java.io.IOException exception, java.lang.String logMessage)
Logs an IOException with the general syntax.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Logging
public Logging()
-
-
Method Details
-
logException
public static void logException(java.lang.Exception exception, java.lang.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(java.io.IOException exception, java.lang.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, java.lang.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(java.lang.String message)Log a simple info message with the plugin syntax.- Parameters:
message
- The message that should be logged.
-
debug
public static void debug(java.lang.String message)Log a info message, if thedebug
option is enabled in theconfig.yml
file- Parameters:
message
- The message that should be logged.
-