Hi!
I recently got a service called Honeybadger which lets me log exceptions in a really nice format. They don't have a CodeIgniter integration so I'm looking to integrate it myself. I got stuck while looking into how CodeIgniter 4 handles exceptions. I found the "exceptionHandler" function in vendor/codeigniter4/framework/system/Debug/Exception.php which is really close to what I need. That method's comment states that it "fires an event that allows custom actions to be taken at this point." While that sounds like exactly what I need, I can't seem to figure out what it means by "fire an event." All I want to do is call a [docs.honeybadger.io/lib/php/integration/other/] Honeybadger method, passing in any exception that happens.
What is this event thing, and how can I hook into that?
Thank you in advance.