summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-08-22 20:58:03 -0500
committerDanny Holman <dholman@gymli.org>2024-08-22 20:58:03 -0500
commitbc41d39f27c7467970b751ed3ebea28b00a8a0b3 (patch)
tree3685c14c36553e0d73fde02789c4186dbf62b6e0 /include
parent6dbae0c34040a41f7f00fb3e7d04074b5625b2ae (diff)
core: add a basic logging framework
Add a basic framework for logging messages to the console or to a file. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include')
-rw-r--r--include/rune_logging.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rune_logging.h b/include/rune_logging.h
new file mode 100644
index 0000000..a0b9e29
--- /dev/null
+++ b/include/rune_logging.h
@@ -0,0 +1,16 @@
+#ifndef RUNE_LOGGING_H
+#define RUNE_LOGGING_H
+
+#include <rune_types.h>
+
+enum log_level {
+ LOG_FATAL,
+ LOG_ERROR,
+ LOG_WARN,
+ LOG_INFO,
+ LOG_DEBUG
+};
+
+void log_output(int level, const char *fmt, ...);
+
+#endif