From cce3545422b24ea0acda858f28083f0f3f2dd374 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 5 Feb 2012 13:01:47 +0200 Subject: Ability to write logs to file --- client/Logger.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/Logger.h') 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 @@ -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, ...) {} -- cgit v1.2.3