diff --git a/src/main/java/ch/mathieubroillet/leds/utils/Logger.java b/src/main/java/ch/mathieubroillet/leds/utils/Logger.java index af72e03..0d9a86d 100644 --- a/src/main/java/ch/mathieubroillet/leds/utils/Logger.java +++ b/src/main/java/ch/mathieubroillet/leds/utils/Logger.java @@ -7,6 +7,8 @@ public class Logger { public static final String ANSI_GREEN = "\u001B[32m"; public static final String ANSI_YELLOW = "\u001B[33m"; public static final String RED_BOLD = "\033[1;31m"; + public static final String GREEN_BOLD = "\033[1;32m"; + public static void error(String message) { print(ANSI_RED + "[ERROR] " + message + ANSI_RESET); @@ -16,6 +18,10 @@ public class Logger { print(ANSI_GREEN + "[INFO] " + message + ANSI_RESET); } + public static void debug(String message) { + print(GREEN_BOLD + "[DEBUG] " + message + ANSI_RESET); + } + public static void warn(String message) { print(ANSI_YELLOW + "[WARN] " + message + ANSI_RESET); }