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 <CAM.Gerlach@Gerlach.CAM>
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

Lines changed: 20 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy