Menu Samaritan's Purse

SYSLOG

Generate a system log message

SYNTAX

syslog ( int $priority , string $message ) : bool

PARAMETERS

priority

priority is a combination of the facility and the level.

CONSTANT (DESCENDING ORDER) DESCRIPTION
LOG_EMERG system is unusable
LOG_ALERT action must be taken immediately
LOG_CRIT critical conditions
LOG_ERR error conditions
LOG_WARNING warning conditions
LOG_NOTICE normal, but significant, condition
LOG_INFO informational message
LOG_DEBUG debug-level message
message

The message to send, except that the two characters %m will be replaced by the error message string (strerror) corresponding to the present value of errno.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES


INTERNAL

closelog

openlog

EXTERNAL

PHP