Filelogger must not truncate log file, but append its stream.

Refs #5448
This commit is contained in:
Michael Friedrich 2014-01-14 17:25:05 +01:00
parent 87ba0ea3ab
commit 815a34a535
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ void FileLogger::Start()
String path = GetPath();
try {
stream->open(path.CStr(), std::fstream::out | std::fstream::trunc);
stream->open(path.CStr(), std::fstream::app | std::fstream::out);
if (!stream->good())
BOOST_THROW_EXCEPTION(std::runtime_error("Could not open logfile '" + path + "'"));