aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
blob: c1d1717ddee2500ac5532b97d82b03926917ce8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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");
    }
}