Closed jimmylomro closed 4 years ago
Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.
At the end of the function FormattedLogSystem::Log an std::endl is inserted into the string stream. As far as I understand this flushes the stream. The issue is when the string is inserted into std::cout (in ConsoleLogSystem::ProcessFormattedStatement) there is no flush any more. This shows no problems when printing to stdout, but when the application is redirected into a file (some_logging_app >> log.txt) the logs are not flushed unless std::flush() is explicitly called.