I have implemented a database handler using PHP monolog libraries that is successfully adding records to a mySQL table when an certain level and up of errors are detected. However, my issue is once the error is logged in the db, the control is taken away from the application page by the monolog error handler and the control never returns back to the application. Previously, before we implemented monolog, errors were happening I am sure, but were not being logged anywhere, but the application would keep running.
I basically want the error to be logged and then return the control to the application. How can that be done ?