diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2012-02-05 13:01:47 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2012-02-05 13:01:47 +0200 |
commit | cce3545422b24ea0acda858f28083f0f3f2dd374 (patch) | |
tree | 9f4863bc01634b7b10f0eee77edd2a5b053b1b1c /client/Logger.h | |
parent | e5f439b2f0226c54f76c0d7a4d7b6c5cd60e8650 (diff) |
Ability to write logs to file
Diffstat (limited to 'client/Logger.h')
-rw-r--r-- | client/Logger.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/Logger.h b/client/Logger.h index cecd454..f8fa5db 100644 --- a/client/Logger.h +++ b/client/Logger.h @@ -13,7 +13,6 @@ enum LogLevelType FatalLevel }; - #ifdef DEBUG #include <stdarg.h> @@ -21,8 +20,10 @@ enum LogLevelType class Logger { public: + static FILE* logFile; static LogLevelType LogLevel; + static void InitLogFile(); static void Trace(std::string msg, ...); static void Debug(std::string msg, ...); static void Info(std::string msg, ...); @@ -39,6 +40,7 @@ private: class Logger { public: + static FILE* logFile; static LogLevelType LogLevel; static void Trace(std::string msg, ...) {} |