Interfaces to Unix syslog(3) program. Requires the file syslog.ph, which must be created with h2ph by your system administrator. Provides the following four functions.
closelog |
Closes the log file.
openlog |
Opens the log file. Takes the following arguments:
ident Prepended to every message
logopt Logging options, containing one or more of:
cons Writes messages to system console if they can't be sent to syslogd
ndelay Opens the connection immediately
nowait Doesn't wait for child processes before logging messages to the console
pid Logs process ID
facility Specifies the part of the system making the log entry
setlogmask |
Sets log mask to mask_priority and returns the old mask.
syslog |
If priority and mask permit, logs message formed as if by sprintf(format, args), with the addition that %m is replaced with the current error message from $!.
8.194. Sys::Hostname | 8.196. Term::Cap |
Copyright © 2002 O'Reilly & Associates. All rights reserved.