Name

openlog

Synopsis

openlog ident, logopt, facility
                  

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

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.