Open aaronjensen opened 8 years ago
Somehow I missed this message earlier. Possibly because it was around the holidays. I'm swamped for the next few days, but I'll give this idea some consideration after that.
Thanks for submitting this!
One could simply rely on Logger using this configuration:
handle_sasl_reports - redirects supervisor, crash and progress reports to Logger so they are formatted in Elixir terms. This uninstalls sasl‘s logger that prints these reports to the terminal. Defaults to false.
From http://elixir-lang.org/docs/stable/logger/Logger.html
Then the Logger handler will already take care of this I suppose?
When hearing about honeybadger's elixir implementation, I learned about SASL-compliant errors. These appear to be the errors that OTP applications can generate. They're handled explicitly by honeybadger's elixir client, I wonder if we should handle them the same way here?
https://github.com/honeybadger-io/honeybadger-elixir/blob/master/lib/honeybadger/logger.ex#L19-L39