Hello,
It seems to me such a basic question, but I could not find a clear answer.
Before switching to Elixir, I was coding in PHP, where I use a global error handler. I am alerted for any error that might happen immediately.
PHP comes with functions such as set_error_handler
and set_exception_handler
that you can set in the bootstrap file. Any unexpected exception that might occur is handled by the function given to set_error_handler
or set_exception_handler
. From there I can log, send myself an email, sms, etc.
It’s as simple as that.
How can I be alerted for unexpected errors that happen in my Elixir application?
What is your strategy?