20 lines
324 B
C
20 lines
324 B
C
|
#ifndef __GILBRALTAR_LOG__
|
||
|
#define __GILBRALTAR_LOG__
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stdarg.h>
|
||
|
#include <stddef.h>
|
||
|
|
||
|
enum log_level {
|
||
|
ERROR= 0,
|
||
|
WARN,
|
||
|
INFO,
|
||
|
DEBUG
|
||
|
};
|
||
|
|
||
|
size_t gilbraltar_log(enum log_level, const char *fmt, ...)
|
||
|
__attribute__((format (printf, 2, 3)));
|
||
|
void gilbraltar_log_set(enum log_level);
|
||
|
|
||
|
#endif
|