Package net.jeqo.bloons.logger
Class Logger
java.lang.Object
net.jeqo.bloons.logger.Logger
A utility class intended to log messages easily to the Bukkit console
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
log
(LoggingLevel level, String message) Log a message to the consolestatic void
Logs a message to the console with the DEBUG levelstatic void
Logs a message to the console with the ERROR levelstatic void
Logs a final shutdown message to the Bukkit consolestatic void
Logs a final startup message to the Bukkit console containing plugin informationstatic void
Logs a message to the console with the INFO levelstatic void
Logs an initial shutdown message to the Bukkit consolestatic void
Logs an initialization message to the Bukkit console containing the plugin namestatic void
logToPlayer
(LoggingLevel level, org.bukkit.entity.Player player, String message) Logs a message to the specified playerstatic void
logToPlayer
(org.bukkit.entity.Player player, String message) Logs a message to the specified player with the plugin prefixstatic void
Logs an update notification to the Bukkit consolestatic void
logUpdateNotificationPlayer
(org.bukkit.entity.Player player) Logs an update notification to a playerstatic void
logWarning
(String message) Logs a message to the console with the WARNING levelstatic void
logWithSTDOUT
(String message) Log a message to the console with STDOUT
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
logWithSTDOUT
Log a message to the console with STDOUT- Parameters:
message
- The message to log, type java.lang.String
-
logToPlayer
Logs a message to the specified player- Parameters:
level
- The logging level, type net.jeqo.bloons.logger.LoggingLevelplayer
- The player to log the message to, type org.bukkit.entity.Playermessage
- The message to log, type java.lang.String
-
logToPlayer
Logs a message to the specified player with the plugin prefix- Parameters:
player
- The player to log the message to, type org.bukkit.entity.Playermessage
- The message to log, type java.lang.String
-
log
Log a message to the console- Parameters:
level
- The logging level, type net.jeqo.bloons.logger.LoggingLevelmessage
- The message to log, type java.lang.String
-
logWarning
Logs a message to the console with the WARNING level- Parameters:
message
- The message to log, type java.lang.String
-
logInfo
Logs a message to the console with the INFO level- Parameters:
message
- The message to log, type java.lang.String
-
logError
Logs a message to the console with the ERROR level- Parameters:
message
- The message to log, type java.lang.String
-
logDebug
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
-