source:
opengl-game/logger.hpp@
054d9ed
Last change on this file since 054d9ed was 1fcca9e, checked in by , 5 years ago | |
---|---|
|
|
File size: 347 bytes |
Rev | Line | |
---|---|---|
[22b2c37] | 1 | #ifndef LOGGER_H |
2 | #define LOGGER_H | |
3 | ||
[bae0911] | 4 | #include <string> |
[98f06d9] | 5 | #include <fstream> |
[bae0911] | 6 | |
7 | using namespace std; | |
8 | ||
[22b2c37] | 9 | #define GL_LOG_FILE "gl.log" |
[98f06d9] | 10 | #define LOG_FILE "game.log" |
11 | ||
12 | extern ofstream ofs; | |
[22b2c37] | 13 | |
14 | bool restart_gl_log(); | |
[bae0911] | 15 | bool gl_log(const string message, ...); |
16 | bool gl_log_err(const string message, ...); | |
[22b2c37] | 17 | |
[98f06d9] | 18 | void open_log(); |
19 | ofstream& get_log(); | |
20 | void close_log(); | |
21 | ||
[22b2c37] | 22 | #endif |
Note:
See TracBrowser
for help on using the repository browser.