This commit is contained in:
Hizenberg469
2025-01-10 20:51:19 +05:30
commit 7563c1ad59
6 changed files with 148 additions and 0 deletions

20
include/log.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef B_LOG
#define B_LOG
#include <stdio.h>
typedef enum{
DEBUG_LOG,
INFO_LOG,
WARNING_LOG,
ERROR_LOG,
NO_LOG
}log_type_t;
#define DEFAULT_LOG_TYPE INFO_LOG
void log_set_type(log_type_t typ);
void log_set_logfile(FILE *f);
void log_printf(log_type_t typ, const char *fmt, ...);
#endif