logfile gets now always flushed when writing new log entries
This commit is contained in:
parent
60ee79152b
commit
a5ee2fe1f5
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user