smol-gilbraltar/include/log.h

15 lines
318 B
C
Raw Permalink Normal View History

2024-12-20 22:45:12 +00:00
#ifndef __GILBRALTAR_LOG__
#define __GILBRALTAR_LOG__
#include <stdarg.h>
#include <stddef.h>
2024-12-23 00:46:17 +00:00
#include <stdint.h>
2024-12-20 22:45:12 +00:00
2024-12-23 00:46:17 +00:00
enum log_level { ERROR = 0, WARN, INFO, DEBUG };
2024-12-20 22:45:12 +00:00
size_t gilbraltar_log(enum log_level, const char *fmt, ...)
2024-12-23 00:46:17 +00:00
__attribute__((format(printf, 2, 3)));
2024-12-20 22:45:12 +00:00
void gilbraltar_log_set(enum log_level);
#endif