Add a BMC LogService
Adds a redfish LogService that provides the contents of the
BMC journald instance available over readfish.
This should be considered a prototype at this time, and suggestions on
how this could be done better are welcome.
At some point in the future, we could make this available over the
redfish TaskService via SSE.
Change-Id: Ibca0d473dcef545763256cc1df5574571a3af414
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index 0998634..3aef06a 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -68,14 +68,17 @@
nodes.emplace_back(
std::make_unique<VlanNetworkInterfaceCollection>(app));
nodes.emplace_back(std::make_unique<LogServiceCollection>(app));
+ nodes.emplace_back(std::make_unique<BMCLogService>(app));
+ nodes.emplace_back(std::make_unique<BMCLogEntryCollection>(app));
+ nodes.emplace_back(std::make_unique<BMCLogEntry>(app));
#ifdef BMCWEB_ENABLE_REDFISH_CPU_LOG
- nodes.emplace_back(std::make_unique<CpuLogService>(app));
- nodes.emplace_back(std::make_unique<CpuLogEntryCollection>(app));
- nodes.emplace_back(std::make_unique<CpuLogEntry>(app));
- nodes.emplace_back(std::make_unique<ImmediateCpuLog>(app));
+ nodes.emplace_back(std::make_unique<CPULogService>(app));
+ nodes.emplace_back(std::make_unique<CPULogEntryCollection>(app));
+ nodes.emplace_back(std::make_unique<CPULogEntry>(app));
+ nodes.emplace_back(std::make_unique<ImmediateCPULog>(app));
#ifdef BMCWEB_ENABLE_REDFISH_RAW_PECI
- nodes.emplace_back(std::make_unique<SendRawPeci>(app));
+ nodes.emplace_back(std::make_unique<SendRawPECI>(app));
#endif // BMCWEB_ENABLE_REDFISH_RAW_PECI
#endif // BMCWEB_ENABLE_REDFISH_CPU_LOG