Unix Platform Modules
syslog
Interface to the Unix system logging service. Messages carry priorities and optionally facility information; delivery is managed by the host. Do not send secrets to system logs or assume logs are private. The example combines a facility and severity without emitting a log message.
Formal Syntax & Structure
python syntaxpython
import syslogReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
import syslogpriority = syslog.LOG_USER | syslog.LOG_INFOprint(priority & syslog.LOG_INFO == syslog.LOG_INFO)