Skip to content

Commit 202eb48

Browse files
gh-95913: Add WhatsNew section for new logging APIs (GH-98320)
* Add entry for new logging.getLevelNamesMapping function * Add entry for SysLogHandler.createSocket to whatsnew * Add missing line break between logging bullet list items (cherry picked from commit 251b8cc) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 39eaca8 commit 202eb48

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Doc/whatsnew/3.11.rst

+20
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,26 @@ locale
799799
``locale.getpreferredencoding(False)`` but ignores the
800800
:ref:`Python UTF-8 Mode <utf8-mode>`.
801801

802+
803+
.. _whatsnew311-logging:
804+
805+
logging
806+
-------
807+
808+
* Added :func:`~logging.getLevelNamesMapping`
809+
to return a mapping from logging level names (e.g. ``'CRITICAL'``)
810+
to the values of their corresponding :ref:`levels` (e.g. ``50``, by default).
811+
(Contributed by Andrei Kulakovin in :gh:`88024`.)
812+
813+
* Added a :meth:`~logging.handlers.SysLogHandler.createSocket` method
814+
to :class:`~logging.handlers.SysLogHandler`, to match
815+
:meth:`SocketHandler.createSocket()
816+
<logging.handlers.SocketHandler.createSocket>`.
817+
It is called automatically during handler initialization
818+
and when emitting an event, if there is no active socket.
819+
(Contributed by Kirill Pinchuk in :gh:`88457`.)
820+
821+
802822
math
803823
----
804824

0 commit comments

Comments
 (0)