aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjkonro <konraddjimeli@gmail.com>2018-01-29 19:46:55 +0100
committerdjkonro <konraddjimeli@gmail.com>2018-02-01 13:11:05 +0100
commitfb001d25a954c790da648bb1c27d0d9da826cb0d (patch)
tree07258ad7285df4c8091a8f62bb975c9249877b05
parent2a36556281b2d95f6d24da9bd02baa611724faf1 (diff)
Add logging.ini for functest_kubernetes
Change-Id: I21008ec3a7cb90f8bccf8df56f659a4b5d59515c Signed-off-by: djkonro <konraddjimeli@gmail.com>
-rw-r--r--docker/Dockerfile1
-rw-r--r--docker/logging.ini50
2 files changed, 51 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b8b504b0..9aa7f84e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -15,4 +15,5 @@ RUN apk --no-cache add --update make bash go \
pip install /src/functest-kubernetes && \
rm -rf /src/k8s.io/kubernetes/.git /src/functest-kubernetes
COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
+COPY logging.ini /usr/lib/python2.7/site-packages/functest/ci/logging.ini
CMD ["run_tests", "-t", "all"]
diff --git a/docker/logging.ini b/docker/logging.ini
new file mode 100644
index 00000000..594de7af
--- /dev/null
+++ b/docker/logging.ini
@@ -0,0 +1,50 @@
+[loggers]
+keys=root,functest,functest_kubernetes
+
+[handlers]
+keys=console,wconsole,file,null
+
+[formatters]
+keys=standard
+
+[logger_root]
+level=NOTSET
+handlers=null
+
+[logger_functest_kubernetes]
+level=NOTSET
+handlers=console
+qualname=functest_kubernetes
+
+[logger_functest]
+level=NOTSET
+handlers=console
+qualname=functest
+
+[handler_null]
+class=NullHandler
+level=NOTSET
+formatter=standard
+args=()
+
+[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=