PHP Monolog control

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 ?

This is a code help site. Show some code, please. Especially the few lines where you call the monolog function. Hard to guess what code you are using.

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service