From c27d5094a5b7276c7f3eddace8a937a035ac4dcd Mon Sep 17 00:00:00 2001 From: C9Glax Date: Fri, 6 May 2022 00:01:23 +0200 Subject: [PATCH] Fixed Debug levels --- Logging/Logger.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Logging/Logger.cs b/Logging/Logger.cs index 4505985..f5b2391 100644 --- a/Logging/Logger.cs +++ b/Logging/Logger.cs @@ -19,9 +19,9 @@ this.level = level; } - public void log(loglevel type, string message, params object[] ?replace) + public void Log(loglevel type, string message, params object[] ?replace) { - if(type >= this.level) + if(type <= this.level) { string header = string.Format("{0} {1} {2}: ", DateTime.Now.ToLocalTime().ToShortDateString(), DateTime.Now.ToLocalTime().ToLongTimeString(), type.ToString()); switch (this.logType) @@ -42,5 +42,5 @@ } public enum LogType { Console, Logfile } - public enum loglevel : ushort { DEBUG = 0, INFO = 1, ERROR = 2, VERBOSE = 3 }; + public enum loglevel : ushort { INFO = 0, DEBUG = 1, ERROR = 2, VERBOSE = 3 }; }