Set NLSR logging level from GUI

refs: #2914

Change-Id: I8dca010011bbe6b94ac986ce14c6c735d8bacb17
diff --git a/bin/minindnedit b/bin/minindnedit
index 8c56cfc..73c1305 100755
--- a/bin/minindnedit
+++ b/bin/minindnedit
@@ -733,7 +733,7 @@
                         template.write('network=' + values['network'] + ' ')
                         template.write('router=' + values['router'] + ' ')
                         template.write('site=' + values['site'] + ' ')
-                        template.write('log-level=' + values['log-level'] + ' ')
+                        template.write('nlsr-log-level=' + values['log-level'] + ' ')
                         template.write('max-faces-per-prefix=' + values['max-faces-per-prefix'] + ' ')
 
                 template.write('\n')
diff --git a/ndn/nlsr.py b/ndn/nlsr.py
index d376531..1807374 100644
--- a/ndn/nlsr.py
+++ b/ndn/nlsr.py
@@ -52,6 +52,7 @@
         self.hyperbolicState = parameters.get("hyperbolic-state", "off")
         self.hyperRadius = parameters.get("radius", 0.0)
         self.hyperAngle = parameters.get("angle", 0.0)
+        self.logLevel = parameters.get("nlsr-log-level", "DEBUG")
 
     def createConfigFile(self):
 
@@ -89,7 +90,7 @@
         general += "  network /ndn/\n"
         general += "  site /edu\n"
         general += "  router /%C1.Router/cs/" + self.node.name + "\n"
-        general += "  log-level DEBUG\n"
+        general += "  log-level " + self.logLevel + "\n"
         general += "  log-dir /tmp/" + self.node.name + "/log\n"
         general += "  seq-dir /tmp/" + self.node.name + "/log\n"
         general += "}\n"