Merge pull request #404 from dhchen/Log_string

Concatenate log into one string and sending to std::cerr instead of multiple << operator
This commit is contained in:
Farook Al-Sammarraie 2022-04-12 17:46:25 +03:00 committed by GitHub
commit db53bd619b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ namespace crow
prefix = "CRITICAL";
break;
}
std::cerr << "(" << timestamp() << ") [" << prefix << "] " << message << std::endl;
std::cerr << std::string("(") + timestamp() + std::string(") [") + prefix + std::string("] ") + message << std::endl;
}
private: