From 369a6336a8d9ab830a7b08ddee579885ff145e9a Mon Sep 17 00:00:00 2001 From: Andrii Yurchuk Date: Mon, 4 Nov 2024 20:49:22 +0100 Subject: [PATCH] Add taskName to BUILTIN_ATTRS set `taskName` is a new attribute of `LogRecord`, that was added in Python 3.12. See the [doc](https://docs.python.org/3/library/logging.html#logrecord-attributes) --- json_log_formatter/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/json_log_formatter/__init__.py b/json_log_formatter/__init__.py index 33d318c..6e0be3d 100644 --- a/json_log_formatter/__init__.py +++ b/json_log_formatter/__init__.py @@ -25,6 +25,7 @@ 'processName', 'relativeCreated', 'stack_info', + 'taskName', 'thread', 'threadName', }