Browse Source

Change log configuration

Godzil 3 years ago
parent
commit
cbccc31be8
1 changed files with 3 additions and 6 deletions
  1. 3 6
      source/include/log.h

+ 3 - 6
source/include/log.h

@@ -24,19 +24,17 @@ enum
     TLOG_DEBUG,
 };
 
-#define TIME_STAMP_LOG
 //#define LOG_ALWAYS_FFLUSH
 #define DYNA_LOG_LEVEL
+#define SET_DEBUG_LOG
 
-//#define SET_DEBUG_LOG
-
-/* Set if DYNALOG is set the maxium compiled log level */
+/* Set if DYNALOG is set the maximum compiled log level */
 #ifndef MAXIMUM_DEBUG_LEVEL
 
 #ifndef SET_DEBUG_LOG
 #define MAXIMUM_DEBUG_LEVEL TLOG_NORMAL
 #else
-#define MAXIMUM_DEBUG_LEVEL TLOG_VERBOSE
+#define MAXIMUM_DEBUG_LEVEL TLOG_DEBUG
 #endif
 
 #endif /* MAXIMUM_DEBUG_LEVEL */
@@ -66,7 +64,6 @@ extern int MAX_DEBUG_LEVEL;
 #  define MAX_DEBUG_LEVEL DEFAULT_DEBUG_LEVEL
 # endif
 #endif
-extern char use_syslog;
 
 #define log(_level, _user, _fmt, ...)\
  if (_level <= MAXIMUM_DEBUG_LEVEL)\