aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/test_logging.ini
diff options
context:
space:
mode:
authorHelen Yao <yaohelan@huawei.com>2017-01-23 09:05:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-23 09:05:25 +0000
commit1015e2f16285c24fb510c9b937bcef593c940ae8 (patch)
treedb7e30de2a6b3b8d3f27c96798b4b96d0aeec61e /functest/tests/unit/test_logging.ini
parent6503cfae235e53fc994d84411cc8f3d8a59750fd (diff)
parent168502f9fa58d9c348adb563b705d17c5ec4dcf7 (diff)
Merge "Leverage logging config and refactor the logger"
Diffstat (limited to 'functest/tests/unit/test_logging.ini')
-rw-r--r--functest/tests/unit/test_logging.ini27
1 files changed, 27 insertions, 0 deletions
diff --git a/functest/tests/unit/test_logging.ini b/functest/tests/unit/test_logging.ini
new file mode 100644
index 00000000..3d5b947c
--- /dev/null
+++ b/functest/tests/unit/test_logging.ini
@@ -0,0 +1,27 @@
+[loggers]
+keys=root,functest_logger
+
+[logger_root]
+level=DEBUG
+handlers=console
+
+[logger_functest_logger]
+level=DEBUG
+handlers=console
+qualname=functest.utils.functest_logger
+propagate=0
+
+[handlers]
+keys=console
+
+[handler_console]
+class=StreamHandler
+level=INFO
+formatter=standard
+args=(sys.stdout,)
+
+[formatters]
+keys=standard
+
+[formatter_standard]
+format=%(asctime)s - %(name)s - %(levelname)s - %(message)s \ No newline at end of file