[3.12] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130393)

gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850)
(cherry picked from commit 5d66c55c8a)

Co-authored-by: UV <yuvrajpradhan667@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-02-24 05:01:30 +01:00 committed by GitHub
parent b505d0f609
commit da471d9d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -562,7 +562,8 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
.. method:: Handler.setFormatter(fmt)
Sets the :class:`Formatter` for this handler to *fmt*.
Sets the formatter for this handler to *fmt*.
The *fmt* argument must be a :class:`Formatter` instance or ``None``.
.. method:: Handler.addFilter(filter)