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