blob: 40e5528928102c8574a3dee79a4ae48b049c69bb [file] [log] [blame]
Alexander Hansenb80ba2e2024-11-18 12:24:35 +01001#pragma once
2
3#include <nlohmann/json.hpp>
4
5#include <span>
6#include <string>
7#include <string_view>
Ed Tanousd7857202025-01-28 15:32:26 -08008#include <vector>
Alexander Hansenb80ba2e2024-11-18 12:24:35 +01009
10namespace redfish
11{
12
13namespace event_log
14{
15
16bool getUniqueEntryID(const std::string& logEntry, std::string& entryID);
17
18int getEventLogParams(const std::string& logEntry, std::string& timestamp,
19 std::string& messageID,
20 std::vector<std::string>& messageArgs);
21
22int formatEventLogEntry(
23 const std::string& logEntryID, const std::string& messageID,
24 std::span<std::string_view> messageArgs, std::string timestamp,
25 const std::string& customText, nlohmann::json::object_t& logEntryJson);
26
27} // namespace event_log
28
29} // namespace redfish