_drupal_log_error($error, $fatal = FALSE)
Logs a PHP error or exception and displays an error page in fatal cases.
Parameters
$error: An array with the following keys: %type, @message, %function, %file, %line, @backtrace_string, severity_level, and backtrace. All the parameters are plain-text, with the exception of @message, which needs to be an HTML string, and backtrace, which is a standard PHP backtrace.
bool $fatal: TRUE for:
An exception is thrown and not caught by something else. A recov