… | |
… | |
22 | */ |
22 | */ |
23 | |
23 | |
24 | #ifndef LOGGER_H |
24 | #ifndef LOGGER_H |
25 | #define LOGGER_H |
25 | #define LOGGER_H |
26 | |
26 | |
27 | typedef enum LogLevel { |
27 | enum { |
28 | llevError = 0, llevInfo = 1, llevDebug = 2, llevMonster = 3 |
28 | llevError = 0, |
29 | } LogLevel; |
29 | llevWarn = 1, |
|
|
30 | llevInfo = 2, |
|
|
31 | llevDebug = 3, |
|
|
32 | llevMonster = 4, |
30 | |
33 | |
|
|
34 | logBacktrace = 0x10, // log the backtrace too, possibly delayed |
|
|
35 | }; |
|
|
36 | |
|
|
37 | void log_backtrace (const char *msg); |
31 | void LOG (LogLevel logLevel, const char *format, ...); |
38 | void LOG (int flags, const char *format, ...); |
32 | |
39 | |
33 | #endif /* LOGGER_H */ |
40 | #endif /* LOGGER_H */ |