netipmid: replace std::cerr with phosphor::logging calls

This is part of a cleanup and standardization effort of code to get
existing code up to date.

Change-Id: I0c982ef8d7afa2f56a9cd204bb8ac3112769641c
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/provider_registration.cpp b/provider_registration.cpp
index f0374f3..50f06c5 100644
--- a/provider_registration.cpp
+++ b/provider_registration.cpp
@@ -9,7 +9,9 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <iostream>
+#include <phosphor-logging/log.hpp>
+
+using namespace phosphor::logging;
 
 namespace provider
 {
@@ -31,8 +33,8 @@
 {
     if (providerLibPath == NULL)
     {
-        std::cerr << "Path not provided for registering IPMI provider libraries"
-                  << "\n";
+        log<level::ERR>(
+            "Path not provided for registering IPMI provider libraries");
         return;
     }
 
@@ -56,7 +58,9 @@
 
         if (lib_handler == NULL)
         {
-            std::cerr << "Error opening " << handlerPath << dlerror() << "\n";
+            log<level::ERR>("Error opening provider library",
+                            entry("PATH=%s", handlerPath.c_str()),
+                            entry("ERROR=%s", dlerror()));
         }
         free(handlerList[numLibs]);
     }