On this page
syslog.openlog
Prev: syslog.closelog | Up: syslog | Next: syslog.setlogmask
Rel: syslog.closelog, syslog.setlogmask, syslog.syslog
Ref: docs.python.org — syslog.openlog
Tags: #public #python3 #stdlib #syslog
Import
import syslog
from syslog import openlog
Signature & Overview
syslog.openlog(...)
Set logging options of subsequent syslog() calls.
Usage
import syslog
# Configures ident, options (LOG_PID), and facility (LOG_DAEMON) for the process
assert callable(syslog.openlog)
Gotchas
- Unix-only and process-global: Avoid calling inside reusable libraries.
REPL Inspect
from syslog import openlog
help(openlog)
Linked from
Related notes
- tuts/python3/stdlib_module/syslog/closelog Linked here; links to this page; shared tags: #stdlib, #syslog
- tuts/python3/stdlib_module/syslog/setlogmask Linked here; links to this page; shared tags: #stdlib, #syslog
- tuts/python3/stdlib_module/syslog/syslog Linked here; links to this page; shared tags: #stdlib, #syslog
- tuts/python3/stdlib_module/syslog links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib