Custom error handling
If you want to log errors to an application monitoring system, you can use a custom error handler.
Register this in public/index.php
before you cann the kuusamo
function.
Foe example, lets say you wanted to integrate Rollbar. Install the Rollbar library using Composer and then add the following to your index.php
file.
Note that custom error handlers will only run when the project is in production
mode. During development, the exception is presented to the developer.
Last updated