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:17:01 +0200
commit0de55a5d7702338fef08d31f723c01c7c178b05c (patch)
tree536ae76c3b7f31e05688068f6f2d5023b087e2c1
parent018e15bd3daad54121e9f9a6cf6d904eaf9a705e (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 c72a05b6..61e194d6 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -29,4 +29,5 @@ RUN apk --no-cache add --update python3 py3-pip bash git grep libffi openssl mai
rm /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch && \
apk del .build-deps
COPY logging.ini /usr/lib/python3.6/site-packages/xtesting/ci/logging.ini
+COPY logging.debug.ini /usr/lib/python3.6/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=