Package fr.sandro642.github.misc
Class Logger
java.lang.Object
fr.sandro642.github.misc.Logger
Logger is a utility class for logging messages in the ConnectLib library.
It provides methods to log messages with different severity levels:
INFO, WARN, ERROR, and CRITICAL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method to display a critical message in the console.void
Method to display an error message in the console.void
Method to display an informational message in the console.void
Method to display a warning message in the console.
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
INFO
Method to display an informational message in the console. This method prints the message in green color and logs it.- Parameters:
msg
-
-
WARN
Method to display a warning message in the console. This method prints the message in yellow color and logs it.- Parameters:
msg
-
-
ERROR
Method to display an error message in the console. This method prints the message in red color and logs it.- Parameters:
msg
-
-
CRITICAL
Method to display a critical message in the console. This method prints the message in magenta color and logs it.- Parameters:
msg
-
-