Changeset bae0911 in opengl-game for logger.h


Ignore:
Timestamp:
May 10, 2019, 9:09:49 PM (6 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
caa2359
Parents:
155a7cf
Message:

Update logging code to send all errors to the log file as well as the console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • logger.h

    r155a7cf rbae0911  
    11#ifndef LOGGER_H
    22#define LOGGER_H
     3
     4#include <string>
     5
     6using namespace std;
    37
    48#define GL_LOG_FILE "gl.log"
    59
    610bool restart_gl_log();
    7 bool gl_log(const char* message, ...);
    8 bool gl_log_err(const char* message, ...);
     11bool gl_log(const string message, ...);
     12bool gl_log_err(const string message, ...);
    913
    1014#endif
Note: See TracChangeset for help on using the changeset viewer.