lg2: convert state-manager

This converts the rest of phosphor-state-manager over to the lg2
interface.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I3878ec950b6a2b1ada93544cc021cecf14edfb46
diff --git a/host_state_manager.hpp b/host_state_manager.hpp
index af22ade..a27cbf5 100644
--- a/host_state_manager.hpp
+++ b/host_state_manager.hpp
@@ -7,7 +7,7 @@
 
 #include <cereal/access.hpp>
 #include <cereal/cereal.hpp>
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 #include <sdbusplus/bus.hpp>
 #include <xyz/openbmc_project/Control/Boot/RebootAttempts/server.hpp>
 #include <xyz/openbmc_project/State/Boot/Progress/server.hpp>
@@ -30,7 +30,7 @@
     sdbusplus::xyz::openbmc_project::Control::Boot::server::RebootAttempts,
     sdbusplus::xyz::openbmc_project::State::OperatingSystem::server::Status>;
 
-using namespace phosphor::logging;
+PHOSPHOR_LOG2_USING;
 
 namespace sdbusRule = sdbusplus::bus::match::rules;
 namespace fs = std::experimental::filesystem;
@@ -113,7 +113,7 @@
     {
         // value is ignored in this implementation
         (void)(value);
-        log<level::DEBUG>("External request to reset reboot count");
+        debug("External request to reset reboot count");
         return (sdbusplus::xyz::openbmc_project::Control::Boot::server::
                     RebootAttempts::attemptsLeft(BOOT_COUNT_MAX_ALLOWED));
     }