I want to use a custom exception handler (set with set_exception_handler()
function) to control what is printed to a user when unhandled exception occurs.
Unfortunately, in this case exception is not logged to a php error log and I don't want to write my own logging code because automatic exception logging was absolutely ok for me.
The question is:
Is there a way to make PHP log exception (as by default) if custom exception handler was executed? If no, is there a way to log into main php error log file?