aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-03-14 13:22:29 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2020-07-07 10:18:46 +0200
commit889a5aafcef652ed23c21ae3bd75d91987092924 (patch)
treed148bbe1733ed3b5219bd13df4c59fe3a49a2576
parent86b1cfc23eca3be9432bd94db3d7f56b55fef1bd (diff)
Publish debug logging config
Change-Id: I6a42fdeb20e0d549819c327e92e138c28dc927e1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 7168abb7509750ece58fa501a56a8b1ebad2dbf8)
-rw-r--r--docker/core/Dockerfile1
-rw-r--r--docker/core/logging.debug.ini70
2 files changed, 71 insertions, 0 deletions
diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile
index 8518686b..069255ed 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -29,4 +29,5 @@ RUN apk --no-cache add --update python py-pip bash git grep libffi openssl mailc
rm /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch && \
apk del .build-deps
COPY logging.ini /usr/lib/python2.7/site-packages/xtesting/ci/logging.ini
+COPY logging.debug.ini /usr/lib/python2.7/site-packages/xtesting/ci/logging.debug.ini
CMD ["run_tests", "-t", "all"]
diff --git a/docker/core/logging.debug.ini b/docker/core/logging.debug.ini
new file mode 100644
index 00000000..8d93df4d
--- /dev/null
+++ b/docker/core/logging.debug.ini
@@ -0,0 +1,70 @@
+[loggers]
+keys=root,xtesting,xci,xcore,energy,xutils,functest_kubernetes
+
+[handlers]
+keys=console,wconsole,file,dfile
+
+[formatters]
+keys=standard
+
+[logger_root]
+level=NOTSET
+handlers=dfile
+
+[logger_xtesting]
+level=NOTSET
+handlers=file
+qualname=xtesting
+
+[logger_xci]
+level=NOTSET
+handlers=console
+qualname=xtesting.ci
+
+[logger_xcore]
+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_functest_kubernetes]
+level=NOTSET
+handlers=wconsole,file
+qualname=functest_kubernetes
+
+[handler_dfile]
+class=FileHandler
+level=DEBUG
+formatter=standard
+args=("/home/opnfv/functest/results/functest-kubernetes.debug.log",)
+
+[handler_console]
+class=StreamHandler
+level=INFO
+formatter=standard
+args=(sys.stdout,)
+
+[handler_wconsole]
+class=StreamHandler
+level=WARN
+formatter=standard
+args=(sys.stdout,)
+
+[handler_file]
+class=FileHandler
+level=DEBUG
+formatter=standard
+args=("/home/opnfv/functest/results/functest-kubernetes.log",)
+
+[formatter_standard]
+format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
+datefmt=