Welcome Guest, Not a member yet? Register   Sign In
Controller/Method to catch any application error and email?
#1

[eluser]novice32[/eluser]
Hello, how can I write a controller method to catch, globally, any application errors? In the controller I would capture the error details and email them to a designated email address.

Thanks,
Novice32
#2

[eluser]SpooF[/eluser]
All errors go through the error files. So you could redirect from those files to a controller.
#3

[eluser]novice32[/eluser]
How would I even start or "redirect from those files"? Can the error class be extended or similar? I prefer the email option (don't want to log into my VPS account daily just to check for errors).




Theme © iAndrew 2016 - Forum software by © MyBB