src: Adding log4cxx logging
Refs: #1505
Change-Id: Ib154d91f81acf3f1dd8bbcf552062a16d03fec74
diff --git a/src/route/fib-entry.cpp b/src/route/fib-entry.cpp
index ba3d77a..ba2731f 100644
--- a/src/route/fib-entry.cpp
+++ b/src/route/fib-entry.cpp
@@ -1,9 +1,12 @@
#include <list>
#include "fib-entry.hpp"
#include "nexthop.hpp"
+#include "logger.hpp"
namespace nlsr {
+INIT_LOGGER("FibEntry");
+
using namespace std;
bool
@@ -30,6 +33,14 @@
}
}
+void
+FibEntry::writeLog()
+{
+ _LOG_DEBUG("Name Prefix: " << m_name);
+ _LOG_DEBUG("Seq No: " << m_seqNo);
+ m_nexthopList.writeLog();
+}
+
ostream&
operator<<(ostream& os, FibEntry fe)
{