blob: 255da4cad915775b4c666c93198a948542fca7fa (
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);
}
|