Add handler for pulse like Assert-DeAssert events

This change adds handler for pulse like events. Currently the changes handle DC
power on - off events. The events are then logged into the Journal.

Tested: Sent IPMI commands to switch DC power on, off, reset and verified that
the logs are updated in the Journal.

Change-Id: I2a6c4e7759015ab80512f6c3da88f950fb02a04f
Signed-off-by: Nikhil Potade <nikhil.potade@intel.com>
diff --git a/src/sel_logger.cpp b/src/sel_logger.cpp
index 22ee2f1..6068e20 100644
--- a/src/sel_logger.cpp
+++ b/src/sel_logger.cpp
@@ -20,6 +20,7 @@
 #include <experimental/string_view>
 #include <iomanip>
 #include <iostream>
+#include <pulse_event_monitor.hpp>
 #include <sdbusplus/asio/object_server.hpp>
 #include <sel_logger.hpp>
 #include <sstream>
@@ -184,6 +185,11 @@
         startThresholdEventMonitor(conn);
 #endif
 
+#ifdef REDFISH_LOG_MONITOR_PULSE_EVENTS
+    sdbusplus::bus::match::match pulseEventMonitor =
+        startPulseEventMonitor(conn);
+#endif
+
     io.run();
 
     return 0;