summaryrefslogtreecommitdiff
path: root/src/logging.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-02 17:09:29 -0600
committersanine <sanine.not@pm.me>2022-01-02 17:09:29 -0600
commit5bc7d084ca129637e4782de5fc0c13be76ad27b8 (patch)
tree357e032b9f343365b0e8b990eef335c78c67fbe9 /src/logging.h
parent3c95c890245cbd79c9f31c316e7334a8f9229f04 (diff)
add README.md and logging
Diffstat (limited to 'src/logging.h')
-rw-r--r--src/logging.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logging.h b/src/logging.h
new file mode 100644
index 0000000..53232ca
--- /dev/null
+++ b/src/logging.h
@@ -0,0 +1,16 @@
+#ifndef ARGENT_LOGGING_H
+#define ARGENT_LOGGING_H
+
+#define FATAL 0
+#define ERROR 1
+#define WARN 2
+#define INFO 3
+#define DEBUG 4
+#define TRACE 5
+
+extern int argent_log_level;
+
+const char *level_string(int level);
+void argent_log(int level, const char *format_string, ...);
+
+#endif