PEL: Changing the remaining traces to lg2 style

Some of the logging traces of PEL files still uses old style of logging.

Changing the remaining traces in PEL files to lg2 style of logging.Some
of the traces in phosphor logging code which use the old style is also
considered.

Change-Id: I0daf9589af443881cb61730047c23db17fdec2c3
Signed-off-by: Arya K Padman <aryakpadman@gmail.com>
diff --git a/elog_entry.cpp b/elog_entry.cpp
index 37a1f53..b4009a5 100644
--- a/elog_entry.cpp
+++ b/elog_entry.cpp
@@ -6,6 +6,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include <phosphor-logging/lg2.hpp>
 #include <xyz/openbmc_project/Common/File/error.hpp>
 
 namespace phosphor
@@ -78,8 +79,8 @@
     if (fd == -1)
     {
         auto e = errno;
-        log<level::ERR>("Failed to open Entry File", entry("ERRNO=%d", e),
-                        entry("PATH=%s", path().c_str()));
+        lg2::error("Failed to open Entry File ERRNO={ERRNO}, PATH={PATH}",
+                   "ERRNO", e, "PATH", path());
         throw sdbusplus::xyz::openbmc_project::Common::File::Error::Open();
     }