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