Factor out log creation code common code.
In preparation for adding another function to create a log entry, factor
out some common code into a new function that will be able to be called
in both spots.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I8881f4ec0d36a2b2e2b1897b63d524022a328286
diff --git a/log_manager.hpp b/log_manager.hpp
index baf6812..15dd3af 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -167,6 +167,16 @@
*/
void doExtensionLogCreate(const Entry& entry);
+ /** @brief Common wrapper for creating an Entry object
+ *
+ * @param[in] errMsg - The error exception message associated with the
+ * error log to be committed.
+ * @param[in] errLvl - level of the error
+ * @param[in] additionalData - The AdditionalData property for the error
+ */
+ void createEntry(std::string errMsg, Entry::Level errLvl,
+ std::vector<std::string> additionalData);
+
/** @brief Persistent sdbusplus DBus bus connection. */
sdbusplus::bus::bus& busLog;