8000 gh-95913: Add WhatsNew section for new logging APIs (#98320) · python/cpython@251b8cc · GitHub
[go: up one dir, main page]

Skip to content
  • Commit 251b8cc

    Browse files
    authored
    gh-95913: Add WhatsNew section for new logging APIs (#98320)
    * Add entry for new logging.getLevelNamesMapping function * Add entry for SysLogHandler.createSocket to whatsnew * Add missing line break between logging bullet list items
    1 parent a53f637 commit 251b8cc

    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)
    0