Create libphosphor-logging library
The commit function would be too big to hold on the
header file. Move it to a library and update the
phosphos-logging.pc file for users to link against it.
Add dependency to libsdbusplus as the commit interface
would make use of the transaction id support.
Change-Id: I237b15e35a633f1da9bf3401b5bf754154f132db
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/elog.hpp b/elog.hpp
index b445a0e..b340f2d 100644
--- a/elog.hpp
+++ b/elog.hpp
@@ -2,7 +2,7 @@
#include <tuple>
#include <utility>
-#include "elog-gen.hpp"
+#include "log.hpp"
namespace phosphor
{
@@ -87,16 +87,8 @@
/** @fn commit()
* @brief Create an error log entry based on journal
* entry with a specified MSG_ID
- * @tparam E - Error log struct
*/
-template <typename E>
-void commit()
-{
- // TODO placeholder function call
- // to call the new error log server to create
- // an error log on the BMC flash
- // dbus_commit(E.msgid); // call server
-}
+void commit();
/** @fn elog()
* @brief Create a journal log entry based on predefined