summaryrefslogtreecommitdiffstats
path: root/Doc/library/syslog.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-03-29 11:15:45 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-03-29 11:15:45 (GMT)
commiteac0939ddd56f60664de9cb85aa32910d7b22c78 (patch)
treece4e4ac1e2c1924b7174f732bfc3d5d1e56566fd /Doc/library/syslog.rst
parent8c696321eb44f84134bf9e60e5c0bf49bc793dde (diff)
downloadcpython-eac0939ddd56f60664de9cb85aa32910d7b22c78.zip
cpython-eac0939ddd56f60664de9cb85aa32910d7b22c78.tar.gz
cpython-eac0939ddd56f60664de9cb85aa32910d7b22c78.tar.bz2
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
Unlike the other facilities, we don't use a fallback for AUTHPRIV if it doesn't exist. Because it is intended for logging sensitive log messages, it is better that a program trying to log such messages fail than that it log them insecurely. Initial patch by Federico Reghenzani.
Diffstat (limited to 'Doc/library/syslog.rst')
-rw-r--r--Doc/library/syslog.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index 645c326..aa0f5a1 100644
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -78,12 +78,14 @@ Priority levels (high to low):
Facilities:
:const:`LOG_KERN`, :const:`LOG_USER`, :const:`LOG_MAIL`, :const:`LOG_DAEMON`,
:const:`LOG_AUTH`, :const:`LOG_LPR`, :const:`LOG_NEWS`, :const:`LOG_UUCP`,
- :const:`LOG_CRON`, :const:`LOG_SYSLOG` and :const:`LOG_LOCAL0` to
- :const:`LOG_LOCAL7`.
+ :const:`LOG_CRON`, :const:`LOG_SYSLOG`, :const:`LOG_LOCAL0` to
+ :const:`LOG_LOCAL7`, and, if defined in ``<syslog.h>``,
+ :const:`LOG_AUTHPRIV`.
Log options:
- :const:`LOG_PID`, :const:`LOG_CONS`, :const:`LOG_NDELAY`, :const:`LOG_NOWAIT`
- and :const:`LOG_PERROR` if defined in ``<syslog.h>``.
+ :const:`LOG_PID`, :const:`LOG_CONS`, :const:`LOG_NDELAY`, and, if defined
+ in ``<syslog.h>``, :const:`LOG_ODELAY`, :const:`LOG_NOWAIT`, and
+ :const:`LOG_PERROR`.
Examples