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/json/group.cpp b/control/json/group.cpp
index e100d71..8ae5b9d 100644
--- a/control/json/group.cpp
+++ b/control/json/group.cpp
@@ -16,13 +16,12 @@
 #include "group.hpp"
 
 #include <nlohmann/json.hpp>
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 
 namespace phosphor::fan::control::json
 {
 
 using json = nlohmann::json;
-using namespace phosphor::logging;
 
 std::set<std::string> Group::_allMembers{};
 
@@ -51,8 +50,7 @@
 {
     if (!jsonObj.contains("members"))
     {
-        log<level::ERR>("Missing required group's members",
-                        entry("JSON=%s", jsonObj.dump().c_str()));
+        lg2::error("Missing required group's members", "JSON", jsonObj.dump());
         throw std::runtime_error("Missing required group's members");
     }
     for (const auto& member : jsonObj["members"])