summaryrefslogtreecommitdiffstats
path: root/ocata
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-04-20 14:54:34 +0800
committerYun Huang <yun.huang@windriver.com>2018-04-20 14:54:34 +0800
commit490660e3937ca804c2f12f422974a80b6c70cfc8 (patch)
tree5b7f2ff9c145e3c01940ea8e2b6338c352022ccd /ocata
parent633badbc4e082f206341583fc4a95ba5f5865937 (diff)
Fix log format for ocata
Change-Id: Ia31c5378be32581a294fb76992f9c1ccb4095f67 Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata')
-rw-r--r--ocata/ocata/pub/config/log.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/ocata/ocata/pub/config/log.yml b/ocata/ocata/pub/config/log.yml
index 224864d1..bb6321fa 100644
--- a/ocata/ocata/pub/config/log.yml
+++ b/ocata/ocata/pub/config/log.yml
@@ -24,11 +24,10 @@ handlers:
backupCount: 10
formatters:
standard:
- format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:%(message)s"
+ format: "%(asctime)s|||||%(name)s||%(thread)||%(funcName)s||%(levelname)s||%(message)s"
mdcFormat:
- format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:[%(mdc)s]: %(message)s"
- mdcfmt: "{requestID}"
+ format: "%(asctime)s|||||%(name)s||%(thread)s||%(funcName)s||%(levelname)s||%(message)s||||%(mdc)s \t"
+ mdcfmt: "{requestID} {invocationID} {serviceName} {serviceIP}"
datefmt: "%Y-%m-%d %H:%M:%S"
(): onaplogging.mdcformatter.MDCFormatter
-