Add throwable to warn and error methods in ALogger

This update introduces modifications to the 'ALogger.java' file to handle possible exceptions more efficiently. It extends the warn and error functions to include a Throwable parameter, making error logs more informative for easier debugging.
This commit is contained in:
Teriuihi 2024-04-06 15:35:08 +02:00
parent a377bdfe48
commit 4e92285261

View File

@ -16,6 +16,10 @@ public class ALogger {
logger.warn(message);
}
public static void warn(String message, Throwable throwable) {
logger.warn(message, throwable);
}
public static void info(String message) {
logger.info(message);
}
@ -23,4 +27,8 @@ public class ALogger {
public static void error(String message) {
logger.error(message);
}
public static void error(String message, Throwable throwable) {
logger.error(message, throwable);
}
}