1 #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 
9 namespace lg2::details
10 {
11 
12 using 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  */
19 auto extractEvent(sdbusplus::exception::generated_event_base&&)
20     -> std::tuple<std::string, Entry::Level, std::vector<std::string>>;
21 
22 } // namespace lg2::details
23