aboutsummaryrefslogtreecommitdiffstats
path: root/log.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-21 18:53:18 +0800
committerverdant <im@verdant.ee>2026-07-21 18:53:18 +0800
commit3e4e10c1c1203d605aeceafa8f15e6a3a4aa8033 (patch)
treedc3042da7d09e82b7e77ae23c5c76e9f2738b3ab /log.h
parent1c7cbcc6f8b775f846277379df23ce6c47fb1321 (diff)
downloadsf-3e4e10c1c1203d605aeceafa8f15e6a3a4aa8033.tar.gz
sf-3e4e10c1c1203d605aeceafa8f15e6a3a4aa8033.zip
Add logging system
Diffstat (limited to 'log.h')
-rw-r--r--log.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/log.h b/log.h
new file mode 100644
index 0000000..e95039f
--- /dev/null
+++ b/log.h
@@ -0,0 +1,16 @@
+#ifndef SS_LOG_H
+#define SS_LOG_H
+
+#define LOG_FILEPATH "./log"
+
+typedef enum {
+ LOG_INFO,
+ LOG_WARN,
+ LOG_ERR,
+} log_level;
+
+void log_init(void);
+
+void log_write(log_level level, const char* fmt, ...);
+
+#endif /* SS_LOG_H */