… | |
… | |
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 | llevInfo = 1, |
|
|
30 | llevDebug = 2, |
|
|
31 | llevMonster = 3, |
30 | |
32 | |
|
|
33 | logBacktrace = 0x10, // log the backtrace too, possibly delayed |
|
|
34 | }; |
|
|
35 | |
|
|
36 | void log_backtrace (const char *msg); |
31 | void LOG (LogLevel logLevel, const char *format, ...); |
37 | void LOG (int flags, const char *format, ...); |
32 | |
38 | |
33 | #endif /* LOGGER_H */ |
39 | #endif /* LOGGER_H */ |