diff --git a/engine/Logging.cc b/engine/Logging.cc index d538a32..59f1842 100644 --- a/engine/Logging.cc +++ b/engine/Logging.cc @@ -67,6 +67,7 @@ void Logging::Log (LogLevel level, const char *str, ...) { time_t timer = time(NULL); std::string timestr (asctime(localtime(&timer))); mLogFileOut << timestr.substr(0, timestr.size() - 1) << ' ' << msg << std::endl; + mLogFileOut.flush(); } }