I'm getting close to taking a PHP application live and so I know that I need to disable error reporting (to hide errors from users) and instead log the errors.
I found the set_error_handler
function in the PHP docs and there is an example shown, but I'm wondering if there is any kind of standard error handler function (to be set as the callback in set_error_handler
) or class that is typically used by PHP developers to log errors?
If there isn't a function or class that is considered "standard," would you show your error handling function?