summaryrefslogtreecommitdiffstats
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 22:15:26 +0200
commit3eb3153d9c28b9bf8b0afddb4b918af7e34bcdbe (patch)
tree1aeb460b05b5c2d8f069b6d780d45b7597236722
parent7786a54c5abe32380468a924f77895b573c576d3 (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> (cherry picked from commit 3f4e49c480ac9a72c76c7c8435caad2fcf81abf0)
-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