logging: switch networkd static_library to lg2

This commit switches logging to lg2 in the following files -
1. src/dhcp_configuration.cpp
2. src/dhcp_configuration.cpp
3. src/ipaddress.cpp
4. src/system_configuration.cpp
5. src/system_queries.cpp

Tested: Build passes with "ninja -C build".

Change-Id: I492c7579c968810b783836b652e450ff89b8cd4b
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/src/dhcp_configuration.cpp b/src/dhcp_configuration.cpp
index 5907f4a..3465721 100644
--- a/src/dhcp_configuration.cpp
+++ b/src/dhcp_configuration.cpp
@@ -8,7 +8,7 @@
 
 #include <filesystem>
 #include <phosphor-logging/elog-errors.hpp>
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 #include <xyz/openbmc_project/Common/error.hpp>
 
 namespace phosphor
@@ -19,7 +19,6 @@
 {
 
 using namespace phosphor::network;
-using namespace phosphor::logging;
 using namespace sdbusplus::xyz::openbmc_project::Common::Error;
 
 Configuration::Configuration(sdbusplus::bus_t& bus,
@@ -44,9 +43,8 @@
     }
     if (newest_file != std::filesystem::directory_entry{})
     {
-        log<level::INFO>(fmt::format("Using DHCP options from {}",
-                                     newest_file.path().native())
-                             .c_str());
+        lg2::info("Using DHCP options from {FILE}", "FILE",
+                  newest_file.path().native());
         conf.setFile(newest_file.path());
     }