append instead of truncate when opening new files

This commit is contained in:
gabime
2014-12-19 18:36:45 +02:00
parent 92f2b7556e
commit fcd1fc037f
2 changed files with 6 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ private:
throw spdlog_ex("rotating_file_sink: failed renaming " + src + " to " + target);
}
}
_file_helper.reopen();
_file_helper.reopen(true);
}
std::string _base_filename;
std::string _extension;