Skip to content

Commit 953b853

Browse files
author
Lee Hicks
committed
Adding module to json output
1 parent 724586b commit 953b853

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

json_logging/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def format(self, record):
236236
"logger": record.name,
237237
"thread": record.threadName,
238238
"level": record.levelname,
239+
"module": record.module,
239240
"line_no": record.lineno,
240241
"msg": record.getMessage()
241242
}
@@ -262,6 +263,7 @@ def format(self, record):
262263
"logger": record.name,
263264
"thread": record.threadName,
264265
"level": record.levelname,
266+
"module": record.module,
265267
"line_no": record.lineno,
266268
"correlation_id": _request_util.get_correlation_id(),
267269
"msg": record.getMessage()

0 commit comments

Comments
 (0)