log_error

Description

Logs an error, if error logging is enabled.

Syntax

string log_error (string $error_message[, mixed $file[, mixed $line]])



Parameter $error_message

Expected type: String
Description: The actual error message that should be logged



Parameter $file

Expected type: Mixed
Description: The file where this error occurred (full path)

Allowed types for $file
Allowed values Description
Null Default value.
String The full path to the file where the error occured



Parameter $line

Expected type: Mixed
Description: The line number where the error occurred

Allowed types for $line
Allowed values Description
Null Default value
Integer The line number where the error occurred



Return value

Expected type: String
Description: The error message


Advertisement: