From acc68c667613a4e350f9416d4514f41866bcaa8d Mon Sep 17 00:00:00 2001 From: rcastley Date: Mon, 25 Mar 2024 19:36:26 +0000 Subject: [PATCH] Python logging for related content --- src/accounts/contacts/logging.conf | 2 +- src/accounts/userservice/logging.conf | 2 +- src/frontend/logging.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounts/contacts/logging.conf b/src/accounts/contacts/logging.conf index 861a53147..e76e66b34 100644 --- a/src/accounts/contacts/logging.conf +++ b/src/accounts/contacts/logging.conf @@ -28,6 +28,6 @@ formatter=generic args=(sys.stdout, ) [formatter_generic] -format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "severity": "%(levelname)s"} +format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "%(filename)s": "%(lineno)d", "trace_id": "%(otelTraceID)s", "span_id": "%(otelSpanID)s", "service.name": "%(otelServiceName)s", "severity": "%(levelname)s"} datefmt=%Y-%m-%d %H:%M:%S class=logging.Formatter diff --git a/src/accounts/userservice/logging.conf b/src/accounts/userservice/logging.conf index 8dc34ef35..2f0352e09 100644 --- a/src/accounts/userservice/logging.conf +++ b/src/accounts/userservice/logging.conf @@ -28,6 +28,6 @@ formatter=generic args=(sys.stdout, ) [formatter_generic] -format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "severity": "%(levelname)s"} +format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "%(filename)s": "%(lineno)d", "trace_id": "%(otelTraceID)s", "span_id": "%(otelSpanID)s", "service.name": "%(otelServiceName)s", "severity": "%(levelname)s"} datefmt=%Y-%m-%d %H:%M:%S class=logging.Formatter diff --git a/src/frontend/logging.conf b/src/frontend/logging.conf index 20c114d08..5d5b6e86a 100644 --- a/src/frontend/logging.conf +++ b/src/frontend/logging.conf @@ -28,6 +28,6 @@ formatter=generic args=(sys.stdout, ) [formatter_generic] -format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "severity": "%(levelname)s"} +format={"timestamp": "%(asctime)s", "message": "%(funcName)s | %(message)s", "%(filename)s": "%(lineno)d", "trace_id": "%(otelTraceID)s", "span_id": "%(otelSpanID)s", "service.name": "%(otelServiceName)s", "severity": "%(levelname)s"} datefmt=%Y-%m-%d %H:%M:%S class=logging.Formatter