summaryrefslogtreecommitdiff
path: root/src/logging/logging.c
blob: cb720a432ec56525099ec4da86c8e25dc8826167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include "logging/logging.h"

int _honey_log_level = HONEY_WARN;

void honey_set_log_level(int level)
{
	_honey_log_level = level;
}


void honey_log(int level, const char *fmt, ...) {
	//if (level > _honey_log_level) return;

	va_list args;
	va_start(args, fmt);
	vfprintf(stderr, fmt, args);
	va_end(args);
}