| 147 | } |
| 148 | |
| 149 | std::string LogFormat(std::string const& sev, std::string const& msg) { |
| 150 | return nlohmann::json{{"severity", sev}, {"message", msg}}.dump(); |
| 151 | } |
| 152 | |
| 153 | void LogError(std::string const& msg) { |
| 154 | std::cerr << LogFormat("error", msg) << "\n"; |