From 490660e3937ca804c2f12f422974a80b6c70cfc8 Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Fri, 20 Apr 2018 14:54:34 +0800 Subject: Fix log format for ocata Change-Id: Ia31c5378be32581a294fb76992f9c1ccb4095f67 Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang --- ocata/ocata/pub/config/log.yml | 7 +++---- 1 file 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 - -- cgit 1.2.3-korg