Lines Matching refs:syslog
1 :mod:`syslog` --- Unix syslog library routines
4 .. module:: syslog
6 :synopsis: An interface to the Unix syslog library routines.
10 This module provides an interface to the Unix ``syslog`` library routines.
11 Refer to the Unix manual pages for a detailed description of the ``syslog``
14 This module wraps the system ``syslog`` family of routines. A pure Python
15 library that can speak to a syslog server is available in the
21 .. function:: syslog(message)
22 syslog(priority, message)
31 If :func:`openlog` has not been called prior to the call to :func:`syslog`,
37 Logging options of subsequent :func:`syslog` calls can be set by calling
38 :func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments
56 Reset the syslog module values and call the system library ``closelog()``.
59 example, :func:`openlog` will be called on the first :func:`syslog` call (if
67 to :func:`syslog` with a priority level not set in *maskpri* are ignored.
84 :const:`LOG_LOCAL7`, and, if defined in ``<syslog.h>``,
89 in ``<syslog.h>``, :const:`LOG_ODELAY`, :const:`LOG_NOWAIT`, and
101 import syslog
103 syslog.syslog('Processing started')
105 syslog.syslog(syslog.LOG_ERR, 'Processing started')
111 syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_MAIL)
112 syslog.syslog('E-mail processing initiated...')