start work on new logger

This commit is contained in:
Lion Kortlepel
2022-04-05 22:27:45 +02:00
parent 1bab3276e9
commit d8c33c03ee
3 changed files with 30 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ public:
void WriteRaw(const std::string& str);
void InitializeLuaConsole(TLuaEngine& Engine);
void BackupOldLog();
void StartLoggingToFile();
Commandline& Internal() { return mCommandline; }
private:
@@ -37,4 +38,5 @@ private:
bool mFirstTime { true };
std::string mStateId;
const std::string mDefaultStateId = "BEAMMP_SERVER_CONSOLE";
std::ofstream mLogFileStream;
};