22 if (lokiAddress.empty())
30 _internalLogBuffer.push_back({
"debug", std::vector<std::pair<std::string, std::string>>()});
31 _internalLogBuffer.push_back({
"info", std::vector<std::pair<std::string, std::string>>()});
32 _internalLogBuffer.push_back({
"warn", std::vector<std::pair<std::string, std::string>>()});
33 _internalLogBuffer.push_back({
"error", std::vector<std::pair<std::string, std::string>>()});
34 _internalLogBuffer.push_back({
"critical", std::vector<std::pair<std::string, std::string>>()});
38 _basicInformation += std::string(R
"("release_version":"v)") + PROJECT_FULL_REVISION + "\",";
39 _basicInformation += std::string(R
"("release_date":")") + PROJECT_BUILD_DATE + " " + PROJECT_BUILD_TIME +
"\",";
41 _basicInformation += std::string(R
"("compiler_version":")") + COMPILER_VERSION + "\",";
45 std::array<char, BUFSIZ> hostBuffer{};
46 gethostname(hostBuffer.data(), BUFSIZ);
50 const std::filesystem::path cpuInfoPath =
"/proc/cpuinfo";