24 lines
346 B
C
24 lines
346 B
C
|
|
#ifndef LOG_H
|
||
|
|
#define LOG_H
|
||
|
|
|
||
|
|
#include "main.h"
|
||
|
|
|
||
|
|
typedef enum {
|
||
|
|
LOG_TRACE,
|
||
|
|
LOG_DEBUG,
|
||
|
|
LOG_INFO,
|
||
|
|
LOG_WARN,
|
||
|
|
LOG_ERROR,
|
||
|
|
LOG_FATAL
|
||
|
|
}LogLevel;
|
||
|
|
|
||
|
|
void log_set_level(LogLevel level);
|
||
|
|
|
||
|
|
void log_debug(const char *fmt, ...);
|
||
|
|
void log_info(const char *fmt, ...);
|
||
|
|
void log_warn(const char *fmt, ...);
|
||
|
|
void log_error(const char *fmt, ...);
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|