aws / aws-iot-device-sdk-cpp

SDK for connecting to AWS IoT from a device using C++
http://aws-iot-device-sdk-cpp-docs.s3-website-us-east-1.amazonaws.com
Apache License 2.0
122 stars 111 forks source link

FormattedLogSystem does not flush properly #139

Closed jimmylomro closed 4 years ago

jimmylomro commented 5 years ago

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.

github-actions[bot] commented 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.