blob: 676dbfdf0f1b34dae05c8e3feaec23644dc813cf [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>
8
9namespace redfish
10{
11
12namespace event_log
13{
14
15bool getUniqueEntryID(const std::string& logEntry, std::string& entryID);
16
17int getEventLogParams(const std::string& logEntry, std::string& timestamp,
18 std::string& messageID,
19 std::vector<std::string>& messageArgs);
20
21int 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