Adding boost logging support for NLSR
diff --git a/src/nlsr.hpp b/src/nlsr.hpp
index 5ff2ef7..31655f4 100644
--- a/src/nlsr.hpp
+++ b/src/nlsr.hpp
@@ -15,6 +15,7 @@
#include "nlsr_rt.hpp"
#include "nlsr_npt.hpp"
#include "nlsr_fib.hpp"
+#include "nlsr_logger.hpp"
//testing
#include "nlsr_test.hpp"
@@ -45,6 +46,7 @@
, routingTable()
, npt()
, fib()
+ , nlsrLogger()
, nlsrTesting()
{
isDaemonProcess=false;
@@ -196,6 +198,11 @@
{
isRouteCalculationScheduled=ircs;
}
+
+ NlsrLogger& getNlsrLogger()
+ {
+ return nlsrLogger;
+ }
private:
ConfParameter confParam;
@@ -216,7 +223,7 @@
RoutingTable routingTable;
Npt npt;
Fib fib;
-
+ NlsrLogger nlsrLogger;
long int adjBuildCount;
int isBuildAdjLsaSheduled;