blob: 1ab43021bebbbe6b075575306b3b1582327d62dd [file] [log] [blame]
Patrick Williams9ca4d132024-10-31 17:02:47 -04001#pragma once
2#include <sdbusplus/exception.hpp>
3#include <xyz/openbmc_project/Logging/Entry/client.hpp>
4
5#include <string>
6#include <tuple>
7#include <vector>
8
9namespace lg2::details
10{
11
12using Entry = sdbusplus::client::xyz::openbmc_project::logging::Entry<>;
13
14/** Extract the message, level, and additional data from agenerated event.
15 *
16 * @param[in] The event to extract data from.
17 * @return A tuple containing the message, level, and additional data.
18 */
19auto extractEvent(sdbusplus::exception::generated_event_base&&)
Patrick Williamsea21d992024-11-22 17:06:35 -050020 -> std::tuple<std::string, Entry::Level,
21 std::map<std::string, std::string>>;
Patrick Williams9ca4d132024-10-31 17:02:47 -040022
23} // namespace lg2::details