Skip to content

Commit

Permalink
Merge pull request #404 from dhchen/Log_string
Browse files Browse the repository at this point in the history
Concatenate log into one string and sending to std::cerr instead of multiple << operator
  • Loading branch information
The-EDev authored Apr 12, 2022
2 parents 03f2e26 + c2b8a60 commit db53bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crow/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db53bd6

Please sign in to comment.