JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

Registering callbacks #58

Open panrafal opened 11 years ago

panrafal commented 11 years ago

$handler->addErrorCallback() will add a callback that will be fired just right after logging the error.

It might be used to use additional loggers, or to display a nice error page for non-development users.

Returning anything from the callback will immediately stop processing the script (no error display).

The callback is of form:

callback( $code, $message, $errLine, $errFile, $ex )