added std::flush

This commit is contained in:
Erik Frojdh
2020-03-09 13:57:50 +01:00
parent c6ddd19c0f
commit 0e171f291d
2 changed files with 2 additions and 1 deletions

View File

@ -43,4 +43,5 @@ int main() {
LOG(logINFOBLUE) << "some infoBLUE text";
LOG(logINFOGREEN) << "some infoGREEN text";
LOG(logINFORED) << "some infoRED text";
}

View File

@ -22,7 +22,7 @@ class Logger {
~Logger() {
// output in the destructor to allow for << syntax
os << RESET << '\n';
std::clog << os.str(); // Single write
std::clog << os.str() << std::flush; // Single write
}
static TLogLevel &ReportingLevel() { // singelton eeh