blob: db6bab096530c5b6d73c0d0ba28e6c77fed1d629 [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&&)
20 -> std::tuple<std::string, Entry::Level, std::vector<std::string>>;
21
22} // namespace lg2::details