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