aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <ollivier.cedric@gmail.com>2018-07-10 11:48:29 +0200
committerCédric Ollivier <ollivier.cedric@gmail.com>2018-07-10 11:50:39 +0200
commit3f4e49c480ac9a72c76c7c8435caad2fcf81abf0 (patch)
tree7a0660777fc28178ec201a9fd5b1bc3c4bbe3a54
parent4c32f394e4ca9058ca69571754ff15156149251d (diff)
Define one logger per key module
Snaps is printing lots of error messages which makes user confused. It will decrease the size of functest.log. Change-Id: I2c7d8ec968350563fbfbd62dcc2fc39b13b39a78 Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
-rw-r--r--functest/ci/logging.ini72
1 files changed, 69 insertions, 3 deletions
diff --git a/functest/ci/logging.ini b/functest/ci/logging.ini
index bed048f6d..98d2e7317 100644
--- a/functest/ci/logging.ini
+++ b/functest/ci/logging.ini
@@ -1,15 +1,25 @@
[loggers]
-keys=root,ci,core,xci,xcore
+keys=root,functest,api,ci,core,cli,opnfv_tests,utils,xtesting,xci,xcore,energy,xutils,sfc,sdnvpn,baro,warnings
[handlers]
-keys=console,wconsole,file
+keys=console,wconsole,file,null
[formatters]
keys=standard
[logger_root]
level=NOTSET
-handlers=wconsole,file
+handlers=null
+
+[logger_functest]
+level=NOTSET
+handlers=file
+qualname=functest
+
+[logger_api]
+level=NOTSET
+handlers=wconsole
+qualname=functest.api
[logger_ci]
level=NOTSET
@@ -21,6 +31,26 @@ 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
@@ -31,6 +61,42 @@ 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
+
+[logger_sfc]
+level=NOTSET
+handlers=file,wconsole
+qualname=sfc
+
+[logger_sdnvpn]
+level=NOTSET
+handlers=file,wconsole
+qualname=sdnvpn
+
+[logger_baro]
+level=NOTSET
+handlers=file,wconsole
+qualname=baro_tests
+
+[logger_warnings]
+level=NOTSET
+handlers=file,console
+qualname=py.warnings
+
+[handler_null]
+class=NullHandler
+level=NOTSET
+formatter=standard
+args=()
+
[handler_console]
class=StreamHandler
level=INFO