| 61 | } |
| 62 | |
| 63 | nlohmann::json LogFormat(std::string const& sev, std::string const& msg) { |
| 64 | return nlohmann::json{{"severity", sev}, {"message", msg}}.dump(); |
| 65 | } |
| 66 | |
| 67 | gcf::HttpResponse LogError(std::string const& msg) { |
| 68 | std::cerr << LogFormat("error", msg) << "\n"; |