[3.11] Clarifying the documentation on library/syslog (GH-92587) (GH-95492)

(cherry picked from commit b7ce4625fe)

Co-authored-by: Nicolas Haller <nicolas@haller.im>
This commit is contained in:
Shantanu 2022-08-05 01:18:44 -07:00 committed by GitHub
parent 0e636e4e7b
commit 6a36b8e586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -31,10 +31,15 @@ The module defines the following functions:
value given in the :func:`openlog` call is used.
If :func:`openlog` has not been called prior to the call to :func:`syslog`,
``openlog()`` will be called with no arguments.
:func:`openlog` will be called with no arguments.
.. audit-event:: syslog.syslog priority,message syslog.syslog
.. versionchanged:: 3.2
In previous versions, :func:`openlog` would not be called automatically if
it wasn't called prior to the call to :func:`syslog`, deferring to the syslog
implementation to call ``openlog()``.
.. function:: openlog([ident[, logoption[, facility]]])
@ -53,8 +58,7 @@ The module defines the following functions:
.. versionchanged:: 3.2
In previous versions, keyword arguments were not allowed, and *ident* was
required. The default for *ident* was dependent on the system libraries,
and often was ``python`` instead of the name of the Python program file.
required.
.. function:: closelog()