From cf534d762754860ed5b714974f99acd282d48b3b Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Wed, 8 Apr 2026 13:14:27 +0200 Subject: Restructure into src/{std,json}/ Co-Authored-By: Claude Sonnet 4.6 --- src/std/log.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/std/log.c (limited to 'src/std/log.c') diff --git a/src/std/log.c b/src/std/log.c new file mode 100644 index 0000000..980c7e7 --- /dev/null +++ b/src/std/log.c @@ -0,0 +1,12 @@ +#include + +#include "log.h" +#include "types.h" + +void info(Logger l, const byte *name, const byte *str, ...) { + if (l.level >= INFO) { + printf("[%s] ", name); + printf("%s", str); + printf("\n"); + } +} -- cgit v1.3