Package com.petarmc.lib.log
Interface PLogger
- All Known Implementing Classes:
PLog
public interface PLogger
Interface for a simple logger with multiple log levels.
-
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug-level message.voidLogs an error-level message.voidLogs an error-level message along with a Throwable.getName()Returns the name of this logger, typically representing the source or context of the log messages.voidLogs an info-level msg.voidLogs a warning-level message.
-
Method Details
-
getName
String getName()Returns the name of this logger, typically representing the source or context of the log messages.- Returns:
- the logger name
-
debug
Logs a debug-level message. Mainly used by the dev/devs.- Parameters:
msg- the message to log
-
info
Logs an info-level msg. Used for general info messages.- Parameters:
msg- the message to log
-
warn
Logs a warning-level message. Indicates a potential issue.- Parameters:
msg- the message to log
-
error
Logs an error-level message. Indicates a failure.- Parameters:
msg- the message to log
-
error
-