Cobenian / raygun

A raygun client for Elixir
Apache License 2.0
19 stars 15 forks source link

Handle SASL-compliant error_reports? #10

Open aaronjensen opened 8 years ago

aaronjensen commented 8 years ago

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

brweber2 commented 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!

edgurgel commented 8 years ago

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?