Skip to content

Commit

Permalink
pythongh-92412: Clarify the documentation on library/syslog (pythonGH…
Browse files Browse the repository at this point in the history
…-92587) (pythonGH-95266)

(cherry picked from commit b7ce462)

Co-authored-by: Nicolas Haller <nicolas@haller.im>
  • Loading branch information
miss-islington and Gaasmann authored Aug 12, 2022
1 parent 345daea commit e21574a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Doc/library/syslog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,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]]])

Expand All @@ -51,8 +56,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()
Expand Down

0 comments on commit e21574a

Please sign in to comment.