Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registering callbacks #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panrafal
Copy link

@panrafal panrafal commented Feb 3, 2013

$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 )

…ng the error in reportError.

It might be used to use additional loggers, or to display a nice error page for non-development users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant