Package net.lewmc.foundry
Class Logger
java.lang.Object
net.lewmc.foundry.Logger
Logging Utility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a message to the server console as informational (standard).boolean
Logs a message to the console, informing the console operator that it cannot run the command requested.void
Logs a message to the server console as severe (fatal error).void
Logs a message to the server console as warning (non-fatal error).
-
Constructor Details
-
Logger
Constructor for the LogUtil class.- Parameters:
config
- - Reference to the config class.
-
-
Method Details
-
info
Logs a message to the server console as informational (standard).- Parameters:
message
- String - Message to log.
-
warn
Logs a message to the server console as warning (non-fatal error).- Parameters:
message
- String - Message to log.
-
severe
Logs a message to the server console as severe (fatal error).- Parameters:
message
- String - Message to log.
-
noConsole
public boolean noConsole()Logs a message to the console, informing the console operator that it cannot run the command requested.
-