aboutsummaryrefslogtreecommitdiff
path: root/log.c
blob: d95299d8ef7bc82e669b021b8ec3268aeb51d18c (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");
  }
}