Class Logger

java.lang.Object
net.jeqo.bloons.logger.Logger

public class Logger extends Object
A utility class intended to log messages easily to the Bukkit console
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • logWithSTDOUT

      public static void logWithSTDOUT(String message)
      Log a message to the console with STDOUT
      Parameters:
      message - The message to log, type java.lang.String
    • logToPlayer

      public static void logToPlayer(LoggingLevel level, org.bukkit.entity.Player player, String message)
      Logs a message to the specified player
      Parameters:
      level - The logging level, type net.jeqo.bloons.logger.LoggingLevel
      player - The player to log the message to, type org.bukkit.entity.Player
      message - The message to log, type java.lang.String
    • logToPlayer

      public static void logToPlayer(org.bukkit.entity.Player player, String message)
      Logs a message to the specified player with the plugin prefix
      Parameters:
      player - The player to log the message to, type org.bukkit.entity.Player
      message - The message to log, type java.lang.String
    • log

      public static void log(LoggingLevel level, String message)
      Log a message to the console
      Parameters:
      level - The logging level, type net.jeqo.bloons.logger.LoggingLevel
      message - The message to log, type java.lang.String
    • logWarning

      public static void logWarning(String message)
      Logs a message to the console with the WARNING level
      Parameters:
      message - The message to log, type java.lang.String
    • logInfo

      public static void logInfo(String message)
      Logs a message to the console with the INFO level
      Parameters:
      message - The message to log, type java.lang.String
    • logError

      public static void logError(String message)
      Logs a message to the console with the ERROR level
      Parameters:
      message - The message to log, type java.lang.String
    • logDebug

      public static void logDebug(String message)
      Logs a message to the console with the DEBUG level
      Parameters:
      message - The message to log, type java.lang.String
    • logInitialStartup

      public static void logInitialStartup()
      Logs an initialization message to the Bukkit console containing the plugin name
    • logFinalStartup

      public static void logFinalStartup()
      Logs a final startup message to the Bukkit console containing plugin information
    • logUpdateNotificationConsole

      public static void logUpdateNotificationConsole()
      Logs an update notification to the Bukkit console
    • logUpdateNotificationPlayer

      public static void logUpdateNotificationPlayer(org.bukkit.entity.Player player)
      Logs an update notification to a player
      Parameters:
      player - The player to log the update notification to, type org.bukkit.entity.Player
    • logInitialShutdown

      public static void logInitialShutdown()
      Logs an initial shutdown message to the Bukkit console
    • logFinalShutdown

      public static void logFinalShutdown()
      Logs a final shutdown message to the Bukkit console