Полезная информация

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: closelogChapter 8
Standard Modules
Next: Reference: setlogmask
 

openlog

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

Write messages to system console if they can't be sent to syslogd.

ndelay

Open the connection immediately.

nowait

Don't wait for child processes before logging messages to the console.

pid

Log process id.

facility

Specifies the part of the system making the log entry.


Previous: Reference: closelogPerl in a NutshellNext: Reference: setlogmask
Reference: closelogBook IndexReference: setlogmask