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

#include "log.h"

#include <stdio.h>

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