Patrick Williams | 9ca4d13 | 2024-10-31 17:02:47 -0400 | [diff] [blame] | 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&&) |
Patrick Williams | ea21d99 | 2024-11-22 17:06:35 -0500 | [diff] [blame^] | 20 | -> std::tuple<std::string, Entry::Level, |
| 21 | std::map<std::string, std::string>>; |
Patrick Williams | 9ca4d13 | 2024-10-31 17:02:47 -0400 | [diff] [blame] | 22 | |
| 23 | } // namespace lg2::details |