aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/log.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
index 52d45ff..397ce2b 100644
--- a/include/log.h
+++ b/include/log.h
@@ -2,6 +2,18 @@
#define LOG_SOH "\001"
#define LOG_SOH_ASCII '\001'
+#define EMERG_LOGLEVEL 0
+#define ALERT_LOGLEVEL 1
+#define CRIT_LOGLEVEL 2
+#define ERR_LOGLEVEL 3
+#define WARNING_LOGLEVEL 4
+#define NOTICE_LOGLEVEL 5
+#define INFO_LOGLEVEL 6
+#define DEBUG_LOGLEVEL 7
+
+#define DEFAULT_LOGLEVEL NOTICE_LOGLEVEL
+#define CONSOLE_LOGLEVEL DEBUG_LOGLEVEL
+
#define LOG_EMERG LOG_SOH "0"
#define LOG_ALERT LOG_SOH "1"
#define LOG_CRIT LOG_SOH "2"