error_log()


bool error_log ( string $message [, int $message_type = 0 , string $destination ] )

Description

error_log() sends a user's message to PHPoC’s console or a log file(/mmap/log2). It is usually used for debugging.

※ available F/W version : all

Parameters

Return values

Returns TRUE

Example

<?php
$ret1 = error_log("debug message to be output to PHPoC's console\r\n");
sleep(1);
$ret2 = error_log("debug message to be output to PHPoC's /mmap/log2\r\n", 3, "/mmap/log2");
?>

See also

None

Remarks

This function is for debugging out, especially for programming web pages.