mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
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:
commit
db53bd619b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user