summaryrefslogtreecommitdiff
path: root/src/logging/logging.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-06-14 11:31:00 -0500
committersanine <sanine.not@pm.me>2022-06-14 11:31:00 -0500
commitd36b59bb1e501ec018faba3d9a60dbfb2b58114a (patch)
tree5f9021e2e4ec708df2409c03c7e01f091e63c274 /src/logging/logging.c
parent432bc96457244c18afe9473729dc52604ec03a9c (diff)
add basic logging function
Diffstat (limited to 'src/logging/logging.c')
-rw-r--r--src/logging/logging.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/logging/logging.c b/src/logging/logging.c
new file mode 100644
index 0000000..4f717cb
--- /dev/null
+++ b/src/logging/logging.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include "logging/logging.h"
+
+int _honey_log_level = HONEY_WARN;
+
+void honey_log(int level, const char *fmt, ...) {
+ //if (level > _honey_log_level) return;
+
+ va_list args;
+ va_start(args, fmt);
+ vfprintf(stderr, fmt, args);
+ va_end(args);
+}