aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/logging.json
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/ci/logging.json
parent6503cfae235e53fc994d84411cc8f3d8a59750fd (diff)
parent168502f9fa58d9c348adb563b705d17c5ec4dcf7 (diff)
Merge "Leverage logging config and refactor the logger"
Diffstat (limited to 'functest/ci/logging.json')
-rw-r--r--functest/ci/logging.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/functest/ci/logging.json b/functest/ci/logging.json
new file mode 100644
index 00000000..3f454e8f
--- /dev/null
+++ b/functest/ci/logging.json
@@ -0,0 +1,29 @@
+{
+ "version": 1,
+ "disable_existing_loggers": false,
+ "formatters": {
+ "standard": {
+ "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
+ }
+ },
+ "handlers": {
+ "console": {
+ "level": "INFO",
+ "class": "logging.StreamHandler",
+ "formatter": "standard"
+ },
+ "file": {
+ "level": "DEBUG",
+ "class": "logging.FileHandler",
+ "formatter": "standard",
+ "filename": "/home/opnfv/functest/results/functest.log"
+ }
+ },
+ "loggers": {
+ "": {
+ "handlers": ["console", "file"],
+ "level": "DEBUG",
+ "propagate": "yes"
+ }
+ }
+}