better logging and OpenGL ARB_debug_output
[laserbrain_demo] / src / logger.h
1 #ifndef LOGGER_H_
2 #define LOGGER_H_
3
4 #include <stdio.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 void set_log_file(const char *fname);
11
12 void info_log(const char *fmt, ...);
13 void warning_log(const char *fmt, ...);
14 void error_log(const char *fmt, ...);
15 void fatal_log(const char *fmt, ...);
16 void debug_log(const char *fmt, ...);
17
18 #ifdef __cplusplus
19 }
20 #endif
21
22 #endif  // LOGGER_H_