Move the control application to lg2

Update the logging API used for files in phosphor-fan-presence/control
from the older phosphor::logging::log to the more recent lg2::log.

Tested:
* Verified journal traces worked correctly in simulation.
* Modified json to force various property errors and verified
  correct key/value pairs in the journalctl output.

Change-Id: If1ac33b90abe2a9baae6f3cc788863bd514fa80e
Signed-off-by: Anwaar Hadi <anwaar.hadi@ibm.com>
diff --git a/control/zone.cpp b/control/zone.cpp
index 6031d53..3fb8cda 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -24,7 +24,7 @@
 #include <cereal/cereal.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>
 
 #include <chrono>
@@ -42,7 +42,6 @@
 
 using namespace std::chrono;
 using namespace phosphor::fan;
-using namespace phosphor::logging;
 namespace fs = std::filesystem;
 using InternalFailure =
     sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
@@ -590,7 +589,8 @@
     }
     catch (const std::exception& e)
     {
-        log<level::ERR>(e.what());
+        lg2::error("Exception restoring current zone mode: {ERROR}", "ERROR",
+                   e);
         fs::remove(path);
         current = ThermalObject::current();
     }