diff --git a/Program.cs b/Program.cs index 7a111fe..beabf5d 100644 --- a/Program.cs +++ b/Program.cs @@ -50,7 +50,7 @@ public static Task LogAsync(string source, string message, LogSeverity severity { string msg = $"[{DateTime.UtcNow.ToString("HH.mm.ss")}] {source}: {message}"; - // Change color based on severity + // Change color / display based on severity switch (severity) { case LogSeverity.Warning: @@ -70,6 +70,15 @@ public static Task LogAsync(string source, string message, LogSeverity severity Console.ResetColor(); break; + case LogSeverity.Verbose: + // Verbose logs are only displayed if the debug flag is set to true in the config + if (config == null || !config.debug) break; + + Console.ForegroundColor = ConsoleColor.DarkGray; + Console.WriteLine(msg); + Console.ResetColor(); + break; + default: // All other severities should have the default color of the console Console.ResetColor();