@@ -1034,8 +1034,12 @@ possible, while any potentially slow operations (such as sending an email via
10341034 method is enqueued.
10351035
10361036 The base implementation formats the record to merge the message,
1037- arguments, and exception information, if present. It also
1038- removes unpickleable items from the record in-place.
1037+ arguments, exception and stack information, if present. It also removes
1038+ unpickleable items from the record in-place. Specifically, it overwrites
1039+ the record's :attr: `msg ` and :attr: `message ` attributes with the merged
1040+ message (obtained by calling the handler's :meth: `format ` method), and
1041+ sets the :attr: `args `, :attr: `exc_info ` and :attr: `exc_text ` attributes
1042+ to ``None ``.
10391043
10401044 You might want to override this method if you want to convert
10411045 the record to a dict or JSON string, or send a modified copy
@@ -1047,7 +1051,13 @@ possible, while any potentially slow operations (such as sending an email via
10471051 want to override this if you want to use blocking behaviour, or a
10481052 timeout, or a customized queue implementation.
10491053
1054+ .. attribute :: listener
10501055
1056+ When created via configuration using :func: `~logging.config.dictConfig `, this
1057+ attribute will contain a :class: `QueueListener ` instance for use with this
1058+ handler. Otherwise, it will be ``None ``.
1059+
1060+ .. versionadded :: 3.12
10511061
10521062.. _queue-listener :
10531063
0 commit comments