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