php – Is there a hook that I can use when a fatal error occurs?

Question

Ideally I would like to log the user or page that triggers a fatal error so that I can follow up with that person or go directly to the page they were on for testing. My thought is that if there is an action hook or filter that I can tap into during the logging process, I might be able to achieve this. I don’t know if it would work, but it would help speed up the debugging process. Any suggestions are appreciated. Thanks in advance.

0
Aristocles 1 week 2023-05-22T10:29:46-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse