Add rsyslog format

Added format for IPMI SEL logging via rsyslog

Tested: Verified this by running rsyslog and verifying log file

Change-Id: I3edb371c81492b635a3771127a4aefa8cf596a19
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/src/selcommands.cpp b/src/selcommands.cpp
index 151c984..5cd818e 100644
--- a/src/selcommands.cpp
+++ b/src/selcommands.cpp
@@ -1349,11 +1349,17 @@
     /* Parse sel data and get an error log to be filed */
     fb_oem::ipmi::sel::parseSelData(data, logErr);
 
+    static const std::string openBMCMessageRegistryVersion("0.1");
+    std::string messageID =
+        "OpenBMC." + openBMCMessageRegistryVersion + ".SELEntryAdded";
+
     /* Log the Raw SEL message to the journal */
     std::string journalMsg = "SEL Entry Added: " + ipmiRaw;
 
-    phosphor::logging::log<phosphor::logging::level::INFO>(journalMsg.c_str());
-    phosphor::logging::log<phosphor::logging::level::INFO>(logErr.c_str());
+    phosphor::logging::log<phosphor::logging::level::INFO>(
+        journalMsg.c_str(),
+        phosphor::logging::entry("IPMISEL_MESSAGE_ID=%s", messageID.c_str()),
+        phosphor::logging::entry("IPMISEL_MESSAGE_ARGS=%s", logErr.c_str()));
 
     int responseID = selObj.addEntry(ipmiRaw.c_str());
     if (responseID < 0)