syslog

bool syslog(int priority, string message) 
priority Integer flag to contain the facility and level of the log message
message Message to log

Sends a message to the system logger.

Returns:

TRUE

Description:

The syslog() function sends messages to the system logger. On UNIX-like systems, this is generally syslogd (run man syslogd for more information). On the Windows family of operating systems, this is the event log. Not all flavors of the Windows operating systems have the event log facility—see your system’s help files and manual for more information.

The priority argument is a combination of the level and facility of the message. The message level indicates the severity of the log message; the facility tells the system logger what ...

Get PHP Functions Essential Reference 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.