summaryrefslogtreecommitdiffstats
path: root/newton
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-04-20 14:58:44 +0800
committerYun Huang <yun.huang@windriver.com>2018-04-20 14:58:44 +0800
commit2a7b6b326a8604ce74943634f0a1677e2367ece9 (patch)
tree70712be39f1af914782bef0493daf6137f77de3f /newton
parent490660e3937ca804c2f12f422974a80b6c70cfc8 (diff)
Fix log format for newton
Change-Id: Ib65ac552ebbef03a0a534ac7413522833ace255f Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'newton')
-rw-r--r--newton/newton/pub/config/log.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/newton/newton/pub/config/log.yml b/newton/newton/pub/config/log.yml
index 452d3b61..6e8ac2ed 100644
--- a/newton/newton/pub/config/log.yml
+++ b/newton/newton/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
-