Skip to content

Commit b0e3eaa

Browse files
miss-islingtonCAM-Gerlach
authored andcommitted
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 f1ca2f6 commit b0e3eaa

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
@@ -781,6 +781,26 @@ locale
781781
``locale.getpreferredencoding(False)`` but ignores the
782782
:ref:`Python UTF-8 Mode <utf8-mode>`.
783783

784+
785+
.. _whatsnew311-logging:
786+
787+
logging
788+
-------
789+
790+
* Added :func:`~logging.getLevelNamesMapping`
791+
to return a mapping from logging level names (e.g. ``'CRITICAL'``)
792+
to the values of their corresponding :ref:`levels` (e.g. ``50``, by default).
793+
(Contributed by Andrei Kulakovin in :gh:`88024`.)
794+
795+
* Added a :meth:`~logging.handlers.SysLogHandler.createSocket` method
796+
to :class:`~logging.handlers.SysLogHandler`, to match
797+
:meth:`SocketHandler.createSocket()
798+
<logging.handlers.SocketHandler.createSocket>`.
799+
It is called automatically during handler initialization
800+
and when emitting an event, if there is no active socket.
801+
(Contributed by Kirill Pinchuk in :gh:`88457`.)
802+
803+
784804
math
785805
----
786806

0 commit comments

Comments
 (0)