Skip to content

Commit

Permalink
Python logging for related content
Browse files Browse the repository at this point in the history
  • Loading branch information
rcastley committed Mar 25, 2024
1 parent aeb2ab3 commit acc68c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/accounts/contacts/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/accounts/userservice/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/frontend/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit acc68c6

Please sign in to comment.