Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit202eb48

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 commit251b8cc)Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent39eaca8 commit202eb48

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)

[8]ページ先頭

©2009-2025 Movatter.jp