mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-19 00:46:03 +01:00
flush after every write: https://github.com/KjellKod/g3log/issues/57
https://github.com/KjellKod/g3log/issues/57
This commit is contained in:
parent
17756a2657
commit
4b3c4d7ff7
@ -51,7 +51,7 @@ namespace g3 {
|
||||
// The actual log receiving function
|
||||
void FileSink::fileWrite(LogMessageMover message) {
|
||||
std::ofstream &out(filestream());
|
||||
out << message.get().toString();
|
||||
out << message.get().toString() << std::flush;
|
||||
}
|
||||
|
||||
std::string FileSink::changeLogFile(const std::string &directory) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user