Update occ-control to use lg2 for all logging

Convert existing log<level>() trace statements to lg2::level()

Testing: Verified on Rainier - captured journal traces before and after
commit during boots, mode, pcap and ips changes.

Change-Id: I318fa7bf3902c641b0c28b09190db4b61d0a2fa9
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/occ_presence.cpp b/occ_presence.cpp
index 73ccf66..b7d4276 100644
--- a/occ_presence.cpp
+++ b/occ_presence.cpp
@@ -10,7 +10,7 @@
 #include <org/open_power/OCC/Device/error.hpp>
 #include <phosphor-logging/elog-errors.hpp>
 #include <phosphor-logging/elog.hpp>
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 #include <xyz/openbmc_project/Common/error.hpp>
 
 namespace open_power
@@ -46,9 +46,8 @@
     auto occsPresent = std::stoi(data, nullptr, 0);
     if (manager.getNumOCCs() != occsPresent)
     {
-        log<level::ERR>(std::format("OCC presence mismatch - BMC: {}, OCC: {}",
-                                    manager.getNumOCCs(), occsPresent)
-                            .c_str());
+        lg2::error("OCC presence mismatch - BMC: {BNUM}, OCC: {ONUM}", "BNUM",
+                   manager.getNumOCCs(), "ONUM", occsPresent);
         if (callBack)
         {
             callBack(occsPresent);