diff options
Diffstat (limited to 'src/std/log.c')
| -rw-r--r-- | src/std/log.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <stdio.h> + +#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"); + } +} |
