mirror of
https://github.com/python/cpython.git
synced 2026-04-28 14:50:59 +00:00
[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392)
(cherry picked from commit 5d66c55c8a)
Co-authored-by: UV <yuvrajpradhan667@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
766170405e
commit
bbfae4a912
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue