Package com.ordwen.odailyquests.tools
Class PluginLogger
java.lang.Object
com.ordwen.odailyquests.tools.PluginLogger
Utility class for logging messages in the plugin.
This class provides various logging methods for different levels of logging, including information, warnings, errors, and fine-level logs. The logs are directed to the console and are prefixed with the plugin's name "O'DailyQuests".
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configurationError
(String fileName, String questIndex, String parameter, String reason) Displays an error message in the console when a quest cannot be loaded due to a configuration error.static void
Logs an error message to the console.static void
Logs a fine-level message to the console, typically for debugging purposes.static void
Logs an informational message to the console.static void
Logs a warning message to the console.
-
Method Details
-
info
Logs an informational message to the console.- Parameters:
msg
- the message to log.
-
warn
Logs a warning message to the console.- Parameters:
msg
- the message to log.
-
error
Logs an error message to the console.- Parameters:
msg
- the message to log.
-
fine
Logs a fine-level message to the console, typically for debugging purposes.- Parameters:
msg
- the message to log.
-
configurationError
public static void configurationError(String fileName, String questIndex, String parameter, String reason) Displays an error message in the console when a quest cannot be loaded due to a configuration error.This method formats and logs the details of the error, including the file name, quest index, the problematic parameter, and the reason for the error.
- Parameters:
fileName
- the name of the file where the error occurredquestIndex
- the index of the quest in the fileparameter
- the parameter that caused the error (can benull
if not applicable)reason
- the reason for the error
-