Browse Source

Log level none to turn all off

Kajetan Johannes Hammerle 11 months ago
parent
commit
36f3b2f75d
2 changed files with 3 additions and 1 deletions
  1. 2 0
      include/core/Logger.h
  2. 1 1
      test/Main.c

+ 2 - 0
include/core/Logger.h

@@ -10,6 +10,7 @@
 #define CORE_TERMINAL_RESET "\33[0m"
 
 typedef enum {
+    CORE_LOG_NONE,
     CORE_LOG_ERROR,
     CORE_LOG_WARNING,
     CORE_LOG_INFO,
@@ -63,6 +64,7 @@ check_format(6, 7) void coreLog(CoreLogLevel l, const char* file, int line,
 #define TERMINAL_GREEN CORE_TERMINAL_GREEN
 #define TERMINAL_RESET CORE_TERMINAL_RESET
 #define LogLevel CoreLogLevel
+#define LOG_NONE CORE_LOG_NONE
 #define LOG_ERROR CORE_LOG_ERROR
 #define LOG_WARNING CORE_LOG_WARNING
 #define LOG_INFO CORE_LOG_INFO

+ 1 - 1
test/Main.c

@@ -47,7 +47,7 @@ int main(int argAmount, const char** args) {
     testQuaternion();
     testQueue();
     testRandom(light);
-    logLevel = LOG_ERROR;
+    logLevel = LOG_NONE;
     testReadLine();
     logLevel = LOG_DEBUG;
     testSpinLock();