diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-01-31 08:02:09 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-01-31 08:02:09 +0100 |
| commit | 8a9e6b1bd3be1041792311a86d8aac68b659e891 (patch) | |
| tree | 2a62729da17b2e6669c3d71a162525ff37e42c6a /log.c | |
feat: First version, failing json parse string
Diffstat (limited to 'log.c')
| -rw-r--r-- | log.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#include "log.h" + +#include <stdio.h> + +void info(Logger l, const char *name, const char *str, ...) { + if (l.level >= INFO) { + printf("[%s] ", name); + printf(str); + printf("\n"); + } +}; |
