Class PluginLogger

java.lang.Object
com.ordwen.odailyquests.tools.PluginLogger

public class PluginLogger extends Object
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 Details

    • info

      public static void info(String msg)
      Logs an informational message to the console.
      Parameters:
      msg - the message to log.
    • warn

      public static void warn(String msg)
      Logs a warning message to the console.
      Parameters:
      msg - the message to log.
    • error

      public static void error(String msg)
      Logs an error message to the console.
      Parameters:
      msg - the message to log.
    • fine

      public static void fine(String msg)
      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 occurred
      questIndex - the index of the quest in the file
      parameter - the parameter that caused the error (can be null if not applicable)
      reason - the reason for the error