- error_log: documentation ( source)
- ini_set: documentation ( source)
- set_exception_handler: documentation ( source)
<?php
ini_set('hhvm.log.always_log_unhandled_exceptions', false);
set_exception_handler( function ($exception) {
error_log("handling $exception");
});
throw new Exception("I'm an exception");