blob: c902a09d38565ee5263cc6414533846a2e90b11c [file] [log] [blame]
#pragma once
#include <nlohmann/json.hpp>
#include <cstdint>
#include <span>
#include <string>
#include <string_view>
#include <vector>
namespace redfish
{
namespace event_log
{
bool getUniqueEntryID(const std::string& logEntry, std::string& entryID);
int getEventLogParams(const std::string& logEntry, std::string& timestamp,
std::string& messageID,
std::vector<std::string>& messageArgs);
int formatEventLogEntry(uint64_t eventId, const std::string& logEntryID,
const std::string& messageID,
std::span<std::string_view> messageArgs,
std::string timestamp, const std::string& customText,
nlohmann::json::object_t& logEntryJson);
} // namespace event_log
} // namespace redfish