Skip to content
Prev Previous commit
Next Next commit
Added getLevelNamesDict doc
  • Loading branch information
akulakov authored May 31, 2021
commit e5601b0d046efcce8267a0e56a60c8c6dcd5ab2f
6 changes: 6 additions & 0 deletions Doc/library/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,12 @@ functions.
.. note:: If you are thinking of defining your own levels, please see the
section on :ref:`custom-levels`.

.. function:: getLevelNamesDict()

Returns the dictionary of all available level names and respective logging levels.
Comment thread
ericvsmith marked this conversation as resolved.
Outdated

.. versionadded:: 3.11

.. function:: getLevelName(level)

Returns the textual or numeric representation of logging level *level*.
Expand Down