Availability:Unix.
This module provides an interface to theUnixsyslog libraryroutines. Refer to theUnix manual pages for a detailed descriptionof thesyslog facility.
The module defines the following functions:
| [priority,] message) |
LOG_INFO | LOG_USER), thevalue given in theopenlog() call is used.| ident[, logopt[, facility]]) |
'syslog',logopt =0,facility =LOG_USER. Theident argument is a string which isprepended to every message. The optionallogopt argument is abit field - see below for possible values to combine. The optionalfacility argument sets the default facility for messages whichdo not have a facility explicitly encoded.| ) |
| maskpri) |
LOG_MASK(pri) calculates themask for the individual prioritypri. The functionLOG_UPTO(pri) calculates the mask for all priorities upto and includingpri.The module defines the following constants:
LOG_EMERG,LOG_ALERT,LOG_CRIT,LOG_ERR,LOG_WARNING,LOG_NOTICE,LOG_INFO,LOG_DEBUG.
LOG_KERN,LOG_USER,LOG_MAIL,LOG_DAEMON,LOG_AUTH,LOG_LPR,LOG_NEWS,LOG_UUCP,LOG_CRON andLOG_LOCAL0 toLOG_LOCAL7.
LOG_PID,LOG_CONS,LOG_NDELAY,LOG_NOWAIT andLOG_PERROR if defined in<syslog.h>.