From 3f4e49c480ac9a72c76c7c8435caad2fcf81abf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Tue, 10 Jul 2018 11:48:29 +0200 Subject: [PATCH] Define one logger per key module MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- functest/ci/logging.ini | 72 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file 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 -- 2.16.6