src: Adding log4cxx logging

Refs: #1505

Change-Id: Ib154d91f81acf3f1dd8bbcf552062a16d03fec74
diff --git a/src/adjacent.cpp b/src/adjacent.cpp
index f27c4b8..35f9790 100644
--- a/src/adjacent.cpp
+++ b/src/adjacent.cpp
@@ -5,9 +5,12 @@
 
 
 #include "adjacent.hpp"
+#include "logger.hpp"
 
 namespace nlsr {
 
+INIT_LOGGER("Adjacent");
+
 using namespace std;
 
 const float Adjacent::DEFAULT_LINK_COST = 10.0;
@@ -55,6 +58,16 @@
   return m_name == adjacencyName;
 }
 
+void
+Adjacent::writeLog()
+{
+  _LOG_DEBUG("Adjacent : " << m_name);
+  _LOG_DEBUG("Connecting FaceUri: " << m_connectingFaceUri);
+  _LOG_DEBUG("Link Cost: " << m_linkCost);
+  _LOG_DEBUG("Status: " << m_status);
+  _LOG_DEBUG("Interest Timed out: " << m_interestTimedOutNo);
+}
+
 std::ostream&
 operator<<(std::ostream& os, const Adjacent& adj)
 {