Lines Matching refs:syslog
1 :mod:`syslog` --- Unix syslog library routines
4 .. module:: syslog
6 :synopsis: An interface to the Unix syslog library routines.
9 This module provides an interface to the Unix ``syslog`` library routines.
10 Refer to the Unix manual pages for a detailed description of the ``syslog``
13 This module wraps the system ``syslog`` family of routines. A pure Python
14 library that can speak to a syslog server is available in the
20 .. function:: syslog(message)
21 syslog(priority, message)
30 If :func:`openlog` has not been called prior to the call to :func:`syslog`,
36 Logging options of subsequent :func:`syslog` calls can be set by calling
37 :func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments
50 Reset the syslog module values and call the system library ``closelog()``.
53 example, :func:`openlog` will be called on the first :func:`syslog` call (if
61 to :func:`syslog` with a priority level not set in *maskpri* are ignored.
82 and :const:`LOG_PERROR` if defined in ``<syslog.h>``.
93 import syslog
95 syslog.syslog('Processing started')
97 syslog.syslog(syslog.LOG_ERR, 'Processing started')
103 syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_MAIL)
104 syslog.syslog('E-mail processing initiated...')