1. ((https://www.php.net/manual/en/function.set-error-handler.php set_error_handler))
1. ((https://www.php.net/manual/en/function.set-exception-handler.php set_exception_handler))
2. ((https://www.php.net/manual/en/function.register-shutdown-function.php register_shutdown_function))
%%
register_shutdown_function('check_for_fatal');
set_error_handler('log_error');
set_exception_handler('log_exception');
%%
((https://softwareengineering.stackexchange.com/questions/111425/server-side-event-logs-through-db-or-writing-to-file Server-side event logs through DB or writing to file?))