Implement the DeleteAll interface
Implement the xyz.openbmc_project.Collection.DeleteAll
interface to delete all logging entries.
Change-Id: I007dd8408ebb4e30bf3d3a3c431d747248620aa4
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/main.cpp b/main.cpp
index 5a2870d..7a65f09 100644
--- a/main.cpp
+++ b/main.cpp
@@ -15,6 +15,7 @@
*/
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
+#include "delete_all.hpp"
#include "manager.hpp"
#include "config.h"
@@ -25,6 +26,7 @@
sdbusplus::server::manager::manager objManager(bus, LOGGING_PATH);
ibm::logging::Manager manager{bus};
+ ibm::logging::DeleteAll da{bus, LOGGING_PATH, manager};
bus.request_name(IBM_LOGGING_BUSNAME);