From c388d49af4812a5301f3d3f9fa565ce06b74c8a0 Mon Sep 17 00:00:00 2001 From: Baldur Gudbjornsson Date: Thu, 21 Jun 2018 12:27:18 -0400 Subject: [PATCH] add msg to web logger format --- json_logging/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/json_logging/__init__.py b/json_logging/__init__.py index eb2c88c..1681b29 100644 --- a/json_logging/__init__.py +++ b/json_logging/__init__.py @@ -263,7 +263,9 @@ def format(self, record): "thread": record.threadName, "level": record.levelname, "line_no": record.lineno, - "correlation_id": _request_util.get_correlation_id()} + "correlation_id": _request_util.get_correlation_id(), + "msg": record.getMessage() + } if hasattr(record, 'props'): json_log_object.update(record.props)