diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-12-24 13:51:49 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-12-24 13:51:49 (GMT) |
commit | 0b7e5369f15046d73c7d1426bb8e28475cf1d05f (patch) | |
tree | 82fe9510be102cdfa782bfe2fc3a59f03d0ef315 /Doc/library | |
parent | ac007ba686675e02992dba1fbaefd041e3e237eb (diff) | |
download | cpython-0b7e5369f15046d73c7d1426bb8e28475cf1d05f.zip cpython-0b7e5369f15046d73c7d1426bb8e28475cf1d05f.tar.gz cpython-0b7e5369f15046d73c7d1426bb8e28475cf1d05f.tar.bz2 |
correct syslog.openlog() argument name to logoption; thanks to Arnaud Gomes-do-Vale from docs@
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/syslog.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst index a3b374a..795d66d 100644 --- a/Doc/library/syslog.rst +++ b/Doc/library/syslog.rst @@ -30,7 +30,7 @@ The module defines the following functions: ``openlog()`` will be called with no arguments. -.. function:: openlog([ident[, logopt[, facility]]]) +.. function:: openlog([ident[, logoption[, facility]]]) Logging options of subsequent :func:`syslog` calls can be set by calling :func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments @@ -38,7 +38,7 @@ The module defines the following functions: The optional *ident* keyword argument is a string which is prepended to every message, and defaults to ``sys.argv[0]`` with leading path components - stripped. The optional *logopt* keyword argument (default is 0) is a bit + stripped. The optional *logoption* keyword argument (default is 0) is a bit field -- see below for possible values to combine. The optional *facility* keyword argument (default is :const:`LOG_USER`) sets the default facility for messages which do not have a facility explicitly encoded. @@ -103,5 +103,5 @@ An example of setting some log options, these would include the process ID in logged messages, and write the messages to the destination facility used for mail logging:: - syslog.openlog(logopt=syslog.LOG_PID, facility=syslog.LOG_MAIL) + syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_MAIL) syslog.syslog('E-mail processing initiated...') |