Add parameters to set log levels in CHO test

Change-Id: I603cbd1ff2c8cbe1e34e54f76f2c93e4685464e2
(cherry picked from commit 89f028d09ca51e9962d226e3d0a97f2dd4afec6d)
diff --git a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params
index b45d70f..1536ca3 100644
--- a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params
+++ b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params
@@ -46,6 +46,11 @@
         <package>on</package>
     </TEST>
 
+    <LOGGING>
+        <DEBUG></DEBUG>
+        <TRACE></TRACE>
+    </LOGGING>
+
     <GRAPH>
         <nodeCluster>CHO</nodeCluster>
         <builds>20</builds>
diff --git a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis
index ae54287..544a19c 100644
--- a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis
+++ b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis
@@ -35,6 +35,11 @@
         <package>on</package>
     </TEST>
 
+    <LOGGING>
+        <DEBUG>org.onosproject.segmentrouting,org.onosproject.driver,org.onosproject.net.flowobjective.impl,org.onosproject.routeservice.impl,org.onosproject.routeservice.store,org.onosproject.routing.fpm,org.onosproject.mcast</DEBUG>
+        <TRACE>org.onosproject.events</TRACE>
+    </LOGGING>
+
     <GRAPH>
         <nodeCluster>CHO</nodeCluster>
         <builds>20</builds>
diff --git a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis.flex b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis.flex
index 9f2f22b..61fd307 100644
--- a/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis.flex
+++ b/TestON/tests/CHOTestMonkey/CHOTestMonkey.params.trellis.flex
@@ -34,6 +34,11 @@
         <package>on</package>
     </TEST>
 
+    <LOGGING>
+        <DEBUG>org.onosproject.segmentrouting,org.onosproject.driver,org.onosproject.net.flowobjective.impl,org.onosproject.routeservice.impl,org.onosproject.routeservice.store,org.onosproject.routing.fpm,org.onosproject.mcast</DEBUG>
+        <TRACE>org.onosproject.events</TRACE>
+    </LOGGING>
+
     <GRAPH>
         <nodeCluster>CHO</nodeCluster>
         <builds>20</builds>
diff --git a/TestON/tests/CHOTestMonkey/CHOTestMonkey.py b/TestON/tests/CHOTestMonkey/CHOTestMonkey.py
index bc6f249..b61b69d 100644
--- a/TestON/tests/CHOTestMonkey/CHOTestMonkey.py
+++ b/TestON/tests/CHOTestMonkey/CHOTestMonkey.py
@@ -113,6 +113,13 @@
             newController.setCLI( main.Cluster.runningNodes[ i - 1 ].CLI )
             main.controllers.append( newController )
 
+        # Set logging levels
+        for logLevel in [ 'DEBUG', 'TRACE' ]:
+            if main.params[ 'LOGGING' ].get( logLevel ):
+                for logger in main.params[ 'LOGGING' ][ logLevel ].split( ',' ):
+                    for ctrl in main.Cluster.active():
+                        ctrl.CLI.logSet( logLevel, logger )
+
         main.step( "Start a thread for the scheduler" )
         t = main.Thread( target=main.eventScheduler.startScheduler,
                          threadID=main.threadID,