blob: db6bab096530c5b6d73c0d0ba28e6c77fed1d629 [file] [log] [blame]
#pragma once
#include <sdbusplus/exception.hpp>
#include <xyz/openbmc_project/Logging/Entry/client.hpp>
#include <string>
#include <tuple>
#include <vector>
namespace lg2::details
{
using Entry = sdbusplus::client::xyz::openbmc_project::logging::Entry<>;
/** Extract the message, level, and additional data from agenerated event.
*
* @param[in] The event to extract data from.
* @return A tuple containing the message, level, and additional data.
*/
auto extractEvent(sdbusplus::exception::generated_event_base&&)
-> std::tuple<std::string, Entry::Level, std::vector<std::string>>;
} // namespace lg2::details