aboutsummaryrefslogtreecommitdiff
path: root/log.c
blob: 9cff1a023a1e30633dc93effac6309a97c87d4ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13

#include "log.h"

#include <stdio.h>

#include "types.h"

void info(Logger l, const byte *name, const byte *str, ...) {
    if (l.level >= INFO) {
        printf("[%s] ", name);
        printf(str);
        printf("\n");
    }
}