Exception is not logged automatically when custom exception handler (set_exception_handler) is used
<p>I want to use a custom exception handler (set with <a href="http://php.net/set_exception_handler" rel="nofollow"><code>set_exception_handler()</code></a> function) to control what is printed to a user when unhandled exception occurs.</p>

<p>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.</p>

<p>The question is:<br>
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?</p>
