gh-87286: Add a number of LOG_* constants to syslog#24432
gh-87286: Add a number of LOG_* constants to syslog#24432ronaldoussoren merged 10 commits intopython:mainfrom
Conversation
This adds a number of syslog facilities to the syslogmodule.c. These values are available on macOS.
|
This PR is stale because it has been open for 30 days with no activity. |
akulakov
left a comment
There was a problem hiding this comment.
By the way I also was not able to find some of these levels in man 3 syslog on my MacOS, (for example LOG_NETINFO, LOG_RAS, etc - but it's old, 10.12, so were they added more recently? I couldn't find them online either.
Misc/NEWS.d/next/Library/2021-02-03-21-26-57.bpo-43120.4fbCBl.rst
Outdated
Show resolved
Hide resolved
This fixes a CI warning and matches the pattern used in the documentation for ``os``.
Doc/library/syslog.rst
Outdated
| LOG_INFO | ||
| LOG_DEBUG | ||
|
|
||
| Priority levels (high to low): |
There was a problem hiding this comment.
Should not it be above the previous list?
There was a problem hiding this comment.
Could be, currently it renders like this:
Where this text is the "description details" of the last "description term":
|
This now fixes all but one of the Sphinx warnings in this file! 👍 If you feel like polishing it off, we can fix the last one too: This module wraps the system ``syslog`` family of routines. A pure Python
library that can speak to a syslog server is available in the
-:mod:`logging.handlers` module as :class:`SysLogHandler`.
+:mod:`logging.handlers` module as :class:`~logging.handlers.SysLogHandler`.And then remove |
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
| :const:`LOG_INSTALL`, :const:`LOG_RAS`, and :const:`LOG_LAUNCHD` tot the | ||
| :mod:`syslog` module, all of them constants on used on macOS. |
There was a problem hiding this comment.
I believe 'tot' should be 'to' and 'constants on used on' should be 'constants used on'.
* bpo-43120: Add a number of LOG_* constants to syslog This adds a number of syslog facilities to the syslogmodule.c. These values are available on macOS. * Switch contant documentation to the data directive This fixes a CI warning and matches the pattern used in the documentation for ``os``. * Update Doc/library/syslog.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-43120: Add a number of LOG_* constants to syslog This adds a number of syslog facilities to the syslogmodule.c. These values are available on macOS. * Switch contant documentation to the data directive This fixes a CI warning and matches the pattern used in the documentation for ``os``. * Update Doc/library/syslog.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>


This adds a number of syslog facilities to the syslogmodule.c.
These values are available on macOS.