From 86d197879ffe467d1482e4af57807831cfa3c3dc Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 13 Aug 2021 16:21:20 +0100 Subject: [PATCH] make logging more fancy --- Generator/Helpers/LoggingHelpers.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Generator/Helpers/LoggingHelpers.cs b/Generator/Helpers/LoggingHelpers.cs index 0342256..de68475 100644 --- a/Generator/Helpers/LoggingHelpers.cs +++ b/Generator/Helpers/LoggingHelpers.cs @@ -11,7 +11,18 @@ namespace Generator.Helpers public static void LogToConsole(string message) { + Console.BackgroundColor = ConsoleColor.Green; + Console.ForegroundColor = ConsoleColor.Black; + Console.WriteLine(message); + + ResetConsoleColours(); + } + + private static void ResetConsoleColours() + { + Console.BackgroundColor = ConsoleColor.Black; + Console.ForegroundColor = ConsoleColor.White; } } }