From 09361d3ff11016e6a6192ea96326bbad450fd1ae Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 10 Oct 2020 10:29:12 +0200 Subject: [PATCH] Added "debug" to the Logger --- src/main/java/ch/mathieubroillet/leds/utils/Logger.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); }