diff options
Diffstat (limited to 'src/log.c')
| -rw-r--r-- | src/log.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c new file mode 100644 index 0000000..c1d1717 --- /dev/null +++ b/src/log.c @@ -0,0 +1,12 @@ +#include <stdio.h> + +#include "../include/log.h" +#include "../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"); + } +} |
