error_log
bool error_log(string message, [int log_type], [string error_destination], [string additional_headers])
message | Error message |
log_type | Type of logging to use; defaults to syslog (0) |
error_destination | If the logging type is email or a file, the destinat ion address or filename |
additional_headers | If the logging type is email, additional email headers |
Generates an error message and sends it somewhere.
Returns:
TRUE on success; FALSE on failure or error
Description:
error_log() sends error messages to a variety of handlers, including custom log files, system logs, and email addresses. The function accepts from one to four arguments.
The first argument, message , contains the error message to be logged. This is the only required ...
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.