Skip to content

Commit 292fce9

Browse files
authored
bpo-32212: Updated logging documentation to make parameter names more consistent with source. (GH-4765) (GH-4768)
(cherry picked from commit a9f8df6)
1 parent 830daae commit 292fce9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Doc/library/logging.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ is the module's name in the Python package namespace.
9595
scenario is to attach handlers only to the root logger, and to let
9696
propagation take care of the rest.
9797

98-
.. method:: Logger.setLevel(lvl)
98+
.. method:: Logger.setLevel(level)
9999

100-
Sets the threshold for this logger to *lvl*. Logging messages which are less
101-
severe than *lvl* will be ignored. When a logger is created, the level is set to
100+
Sets the threshold for this logger to *level*. Logging messages which are less
101+
severe than *level* will be ignored. When a logger is created, the level is set to
102102
:const:`NOTSET` (which causes all messages to be processed when the logger is
103103
the root logger, or delegation to the parent when the logger is a non-root
104104
logger). Note that the root logger is created with level :const:`WARNING`.
@@ -232,14 +232,14 @@ is the module's name in the Python package namespace.
232232
should only be called from an exception handler.
233233

234234

235-
.. method:: Logger.addFilter(filt)
235+
.. method:: Logger.addFilter(filter)
236236

237-
Adds the specified filter *filt* to this logger.
237+
Adds the specified filter *filter* to this logger.
238238

239239

240-
.. method:: Logger.removeFilter(filt)
240+
.. method:: Logger.removeFilter(filter)
241241

242-
Removes the specified filter *filt* from this logger.
242+
Removes the specified filter *filter* from this logger.
243243

244244

245245
.. method:: Logger.filter(record)
@@ -349,27 +349,27 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
349349
Releases the thread lock acquired with :meth:`acquire`.
350350

351351

352-
.. method:: Handler.setLevel(lvl)
352+
.. method:: Handler.setLevel(level)
353353

354-
Sets the threshold for this handler to *lvl*. Logging messages which are less
355-
severe than *lvl* will be ignored. When a handler is created, the level is set
354+
Sets the threshold for this handler to *level*. Logging messages which are less
355+
severe than *level* will be ignored. When a handler is created, the level is set
356356
to :const:`NOTSET` (which causes all messages to be processed).
357357

358358
See :ref:`levels` for a list of levels.
359359

360-
.. method:: Handler.setFormatter(form)
360+
.. method:: Handler.setFormatter(fmt)
361361

362-
Sets the :class:`Formatter` for this handler to *form*.
362+
Sets the :class:`Formatter` for this handler to *fmt*.
363363

364364

365-
.. method:: Handler.addFilter(filt)
365+
.. method:: Handler.addFilter(filter)
366366

367-
Adds the specified filter *filt* to this handler.
367+
Adds the specified filter *filter* to this handler.
368368

369369

370-
.. method:: Handler.removeFilter(filt)
370+
.. method:: Handler.removeFilter(filter)
371371

372-
Removes the specified filter *filt* from this handler.
372+
Removes the specified filter *filter* from this handler.
373373

374374

375375
.. method:: Handler.filter(record)

0 commit comments

Comments
 (0)