I'm writing a simple error handling using set_exception_handler(...)
. Everything works fine, but the default exception logging to the syslog
seems to get disabled, when I use the set_exception_handler(...)
and log exceptions in my custom file.
For the logging of "non-Trowable
s" there is a function set_error_handler
. If the handler function returns false
, the normal error handler continues, that means the original PHP error message is stored to the system log. For the exception handler no return
value is provided.
How to store the original PHP error message to the system log, after the set_exception_handler(...)
's callback has been executed?