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