1 #pragma once 2 3 #include <nlohmann/json.hpp> 4 5 #include <span> 6 #include <string> 7 #include <string_view> 8 9 namespace redfish 10 { 11 12 namespace event_log 13 { 14 15 bool getUniqueEntryID(const std::string& logEntry, std::string& entryID); 16 17 int getEventLogParams(const std::string& logEntry, std::string& timestamp, 18 std::string& messageID, 19 std::vector<std::string>& messageArgs); 20 21 int formatEventLogEntry( 22 const std::string& logEntryID, const std::string& messageID, 23 std::span<std::string_view> messageArgs, std::string timestamp, 24 const std::string& customText, nlohmann::json::object_t& logEntryJson); 25 26 } // namespace event_log 27 28 } // namespace redfish 29