logging: switch to lg2

After switching to C++20, it is recommended to use `phosphor::lg2`
to format log, and the correct `CODE_LINE` and `CODE_FUNC` values
can be used in log tracking.

Change-Id: Ia8e566b3e4c667bb9dd15e9ea224b93faf6c0557
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/src/iei_oem.cpp b/src/iei_oem.cpp
index a403722..bffab0f 100644
--- a/src/iei_oem.cpp
+++ b/src/iei_oem.cpp
@@ -7,7 +7,7 @@
 
 #include <ipmid/api.h>
 
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 
 #include <optional>
 
@@ -32,7 +32,6 @@
 
 #define UNUSED(x) (void)(x)
 
-using namespace phosphor::logging;
 using namespace iei;
 
 static void registerOEMFunctions() __attribute__((constructor));
@@ -159,7 +158,8 @@
     auto deviceType = info->deviceType;
     if (deviceType != 0x05)
     {
-        log<level::WARNING>("Device type not supported yet");
+        lg2::info("Device type ({DEVICE_TYPE}) not supported yet",
+                  "DEVICE_TYPE", deviceType);
         return IPMI_CC_UNSPECIFIED_ERROR;
     }