Logging application errors to Database table [closed]
Im trying to find the best way to save errors to a database table for better error tracking. My app has a React/Redux front end with the backend built in PHP Slim. We are running a MYSQL database.
I am just trying to get a feel of where would be the best place to do this.
Has anyone done this in the past or have an idea? I was thinking of doing a middleware in slim and catching errors there but I am new to slim therefore, I am not 100% sure how to acccomplish this the best way. The documentation really didnt provide much help on this.