topology: Convert to phosphor-logging

Tested: Inspection only

Change-Id: I3e6a3af51ff070473e2ffde821056e31fa7baa73
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/src/entity_manager/topology.cpp b/src/entity_manager/topology.cpp
index 1238447..add9ce0 100644
--- a/src/entity_manager/topology.cpp
+++ b/src/entity_manager/topology.cpp
@@ -1,6 +1,6 @@
 #include "topology.hpp"
 
-#include <iostream>
+#include "phosphor-logging/lg2.hpp"
 
 void Topology::addBoard(const std::string& path, const std::string& boardType,
                         const std::string& boardName,
@@ -37,8 +37,8 @@
     auto findConnectsTo = exposesItem.find("ConnectsToType");
     if (findConnectsTo == exposesItem.end())
     {
-        std::cerr << "Board at path " << path << " is missing ConnectsToType"
-                  << std::endl;
+        lg2::error("Board at path {PATH} is missing ConnectsToType", "PATH",
+                   path);
         return;
     }
     PortType connectsTo = findConnectsTo->get<std::string>();