aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c11
1 files changed, 11 insertions, 0 deletions
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 <stdio.h>
+
+void info(Logger l, const char *name, const char *str, ...) {
+ if (l.level >= INFO) {
+ printf("[%s] ", name);
+ printf(str);
+ printf("\n");
+ }
+};