18 lines
401 B
C
18 lines
401 B
C
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#ifndef LOG_LEVEL
|
|
#define LOG_LEVEL INFO
|
|
#endif
|
|
|
|
typedef enum {FATAL, ERROR, WARNING, INFO, DEBUG, TRACE} LogLevel;
|
|
|
|
void trace(const char *format, ...);
|
|
void debug(const char *format, ...);
|
|
void info(const char *format, ...);
|
|
void warning(const char *format, ...);
|
|
void error(const char *format, ...);
|
|
void fatal(void (*fallback)(void), const char *format, ...);
|
|
|
|
|
|
#endif |