mirror of
https://github.com/Hizenberg469/Bit-Share.git
synced 2026-04-19 16:42:23 +03:00
20 lines
312 B
C
20 lines
312 B
C
#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 |