src: Adding log4cxx logging
Refs: #1505
Change-Id: Ib154d91f81acf3f1dd8bbcf552062a16d03fec74
diff --git a/src/adjacency-list.cpp b/src/adjacency-list.cpp
index 48e35cf..17f6537 100644
--- a/src/adjacency-list.cpp
+++ b/src/adjacency-list.cpp
@@ -4,10 +4,12 @@
#include "adjacency-list.hpp"
#include "adjacent.hpp"
#include "nlsr.hpp"
-
+#include "logger.hpp"
namespace nlsr {
+INIT_LOGGER("AdjacencyList");
+
using namespace std;
AdjacencyList::AdjacencyList()
@@ -210,6 +212,16 @@
return it;
}
+void
+AdjacencyList::writeLog()
+{
+ _LOG_DEBUG("-------Adjacency List--------");
+ for (std::list<Adjacent>::iterator it = m_adjList.begin();
+ it != m_adjList.end(); it++) {
+ (*it).writeLog();
+ }
+}
+
// used for debugging purpose
void
AdjacencyList::print()