Simplify logging 89/57889/3
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>
Fri, 25 May 2018 09:22:47 +0000 (12:22 +0300)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 29 May 2018 08:15:58 +0000 (10:15 +0200)
In order to collect logs from features running through
functest framework (mainly for troubleshooting purposes),
the logging mechanism has been updated accordingly.

It should be noted that feature logs are printed in functest.log.
All logs are now printed in functest.log whatever the namespace.

JIRA: SFC-125

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I6cb32e5553749023d490d553ae4653750c52e844
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/ci/logging.ini
upper-constraints.txt

index d014725..bed048f 100644 (file)
@@ -1,25 +1,15 @@
 [loggers]
-keys=root,functest,api,ci,core,cli,opnfv_tests,utils,xtesting,xci,xcore,energy,xutils
+keys=root,ci,core,xci,xcore
 
 [handlers]
-keys=console,wconsole,file,null
+keys=console,wconsole,file
 
 [formatters]
 keys=standard
 
 [logger_root]
 level=NOTSET
-handlers=null
-
-[logger_functest]
-level=NOTSET
-handlers=file
-qualname=functest
-
-[logger_api]
-level=NOTSET
-handlers=wconsole
-qualname=functest.api
+handlers=wconsole,file
 
 [logger_ci]
 level=NOTSET
@@ -31,26 +21,6 @@ level=NOTSET
 handlers=console
 qualname=functest.core
 
-[logger_cli]
-level=NOTSET
-handlers=wconsole
-qualname=functest.cli
-
-[logger_opnfv_tests]
-level=NOTSET
-handlers=wconsole
-qualname=functest.opnfv_tests
-
-[logger_utils]
-level=NOTSET
-handlers=wconsole
-qualname=functest.utils
-
-[logger_xtesting]
-level=NOTSET
-handlers=file
-qualname=xtesting
-
 [logger_xci]
 level=NOTSET
 handlers=console
@@ -61,22 +31,6 @@ level=NOTSET
 handlers=console
 qualname=xtesting.core
 
-[logger_energy]
-level=NOTSET
-handlers=wconsole
-qualname=xtesting.energy
-
-[logger_xutils]
-level=NOTSET
-handlers=wconsole
-qualname=xtesting.utils
-
-[handler_null]
-class=NullHandler
-level=NOTSET
-formatter=standard
-args=()
-
 [handler_console]
 class=StreamHandler
 level=INFO
index 9eb6829..c0763db 100644 (file)
@@ -19,6 +19,6 @@ robotframework-sshlibrary===2.1.3;python_version=='2.7'
 IPy===0.83
 ansible===2.3.2.0
 flasgger===0.6.6
-xtesting===0.41.0
+xtesting===0.42.0
 networking-bgpvpn===8.0.0
 sphinx-opnfv-theme===0.1.1