Skip to content

Commit 5d66c55

Browse files
author
UV
authored
pythongh-127805: Clarify Formatter initialization in logging.rst. (pythonGH-127850)
1 parent d63af95 commit 5d66c55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/logging.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
562562

563563
.. method:: Handler.setFormatter(fmt)
564564

565-
Sets the :class:`Formatter` for this handler to *fmt*.
565+
Sets the formatter for this handler to *fmt*.
566+
The *fmt* argument must be a :class:`Formatter` instance or ``None``.
566567

567568

568569
.. method:: Handler.addFilter(filter)

0 commit comments

Comments
 (0)