Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Centralized error reporting in PHP

is there a way to handle error reporting in a centralized manner in PHP? I'd like to be notified of all errors raised by my application by email.

What's the best way to achieve this for a whole application?

Thanks

like image 511
Lorenzo Avatar asked Dec 03 '22 08:12

Lorenzo


1 Answers

You can use set_error_handler to handle errors at runtime any way you like.

like image 59
Kalium Avatar answered Dec 19 '22 16:12

Kalium