From 8a9e6b1bd3be1041792311a86d8aac68b659e891 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 31 Jan 2025 08:02:09 +0100 Subject: feat: First version, failing json parse string --- log.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 log.c (limited to 'log.c') diff --git a/log.c b/log.c new file mode 100644 index 0000000..9a3211f --- /dev/null +++ b/log.c @@ -0,0 +1,11 @@ +#include "log.h" + +#include + +void info(Logger l, const char *name, const char *str, ...) { + if (l.level >= INFO) { + printf("[%s] ", name); + printf(str); + printf("\n"); + } +}; -- cgit v1.3