logfile gets now always flushed when writing new log entries

main
Martin Felis (berta win) 2010-04-08 20:27:38 +02:00
parent 60ee79152b
commit a5ee2fe1f5
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ void Logging::Log (LogLevel level, const char *str, ...) {
time_t timer = time(NULL); time_t timer = time(NULL);
std::string timestr (asctime(localtime(&timer))); std::string timestr (asctime(localtime(&timer)));
mLogFileOut << timestr.substr(0, timestr.size() - 1) << ' ' << msg << std::endl; mLogFileOut << timestr.substr(0, timestr.size() - 1) << ' ' << msg << std::endl;
mLogFileOut.flush();
} }
} }