From ed4d9d48d48b8490dcdda0eea17c8991b0117b5f Mon Sep 17 00:00:00 2001 From: Madpeter Date: Tue, 13 Oct 2020 19:20:19 +0100 Subject: [PATCH] Update LogFormater.cs --- BSBshared/Staic/LogFormater.cs | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/BSBshared/Staic/LogFormater.cs b/BSBshared/Staic/LogFormater.cs index d5cb952..0812387 100644 --- a/BSBshared/Staic/LogFormater.cs +++ b/BSBshared/Staic/LogFormater.cs @@ -13,26 +13,47 @@ namespace BetterSecondBotShared.logs }; public static class LogFormater { - public static string Warn(string message,bool send_to_console=true) + public static string Warn(string message,bool send_to_console) { return Add(message, ConsoleLogLogLevel.Warn, send_to_console); } - public static string Crit(string message, bool send_to_console = true) + public static string Crit(string message, bool send_to_console) { return Add(message, ConsoleLogLogLevel.Crit, send_to_console); } - public static string Info(string message, bool send_to_console = true) + public static string Info(string message, bool send_to_console) { return Add(message, ConsoleLogLogLevel.Info, send_to_console); } - public static string Status(string message, bool send_to_console = true) + public static string Status(string message, bool send_to_console) { return Add(message, ConsoleLogLogLevel.Status, send_to_console); } - public static string Debug(string message, bool send_to_console = true) + public static string Debug(string message, bool send_to_console) { - return Add(message, ConsoleLogLogLevel.Debug, send_to_console); + return Add(message, ConsoleLogLogLevel.Debug, true); } + public static string Warn(string message) + { + return Warn(message, true); + } + public static string Crit(string message) + { + return Crit(message, true); + } + public static string Info(string message) + { + return Info(message, true); + } + public static string Status(string message) + { + return Status(message, true); + } + public static string Debug(string message) + { + return Debug(message, true); + } + private static string Add(string message, ConsoleLogLogLevel Level, bool send_to_console = true) { var date = DateTime.Now;