summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/pub
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-18 15:54:25 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-18 15:54:25 +0800
commitacf103dbf3555d6b5f2302054d47fb755c33e2f5 (patch)
treeb2a0d56062eb95e3b2bb05dc56dc13f4cdb92e71 /windriver/titanium_cloud/pub
parenteb0fb51034382b1cdc85798c428b4f501c247eda (diff)
Update logging format
And enable MDC on entry and exit Change-Id: Ia78ad7116cf624c7df6d25d3a57f37b50d46988e Issue-ID: MULTICLOUD-177 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/pub')
-rw-r--r--windriver/titanium_cloud/pub/config/log.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/windriver/titanium_cloud/pub/config/log.yml b/windriver/titanium_cloud/pub/config/log.yml
index 7dab297b..95e1945a 100644
--- a/windriver/titanium_cloud/pub/config/log.yml
+++ b/windriver/titanium_cloud/pub/config/log.yml
@@ -20,14 +20,14 @@ handlers:
class: "logging.handlers.RotatingFileHandler"
filename: "/var/log/onap/multicloud/openstack/windriver/titanium_cloud.log"
formatter: "mdcFormat"
- maxBytes: 1024*1024*50
+ maxBytes: 52428800
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