Syslog functions

Started by chinmay.sahoo, 12-24-2015, 00:45:38

Previous topic - Next topic

chinmay.sahooTopic starter

The syslog functions allow you to open the system log for a program, generate a message,and close it again.

✦ openlog([ident], option, facility) is entirely optional when used with syslog().The ident value is generated automatically.
✦ syslog(priority, message) generates a system log entry.
✦ closelog() is entirely optional when used with syslog(). It takes no arguments.


TomClarke

Quotebool syslog ( int $priority , string $message )

syslog generate a system log message. it generates a log message  that will be distributed by the system logger.
For information on setting up a user defined log handler, see the syslog.conf (5) Unix manual page. And more information ofn the syslog facilities and option can be found in the manpaged for syslog (3) on Unix machines.