Minor changes in the code

- fix a typo in README and wrap file.
- refactoring lg2 errorlog usage.

Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/utils.hpp b/utils.hpp
index dd81314..34a67e8 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -5,6 +5,7 @@
 #include <phosphor-logging/lg2.hpp>
 #include <sdbusplus/bus.hpp>
 
+#include <string_view>
 #include <vector>
 
 namespace phosphor
@@ -21,6 +22,8 @@
 using MapperResponse =
     std::vector<std::pair<Path, std::vector<std::pair<Service, Interfaces>>>>;
 
+PHOSPHOR_LOG2_USING;
+
 /** @brief The template function to get property from the requested dbus path
  *
  * @param[in] bus          - The Dbus bus object
@@ -47,10 +50,10 @@
     }
     catch (const sdbusplus::exception_t& ex)
     {
-        lg2::error("GetProperty call failed, path:{PATH}, interface:{INTF}, "
-                   "propertyName:{NAME}, error:{ERROR}",
-                   "PATH", path, "INTF", interface, "NAME", propertyName,
-                   "ERROR", ex);
+        error("GetProperty call failed, path:{PATH}, interface:{INTF}, "
+              "propertyName:{NAME}, error:{ERROR}",
+              "PATH", path, "INTF", interface, "NAME", propertyName, "ERROR",
+              ex);
         throw std::runtime_error("GetProperty call failed");
     }
 }