MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / LogFormat

Function LogFormat

getting-started/index_gcs_prefix.cc:63–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

LogErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected