An OTP :logger handler that reports crash reports to Errorgap.
Attach it once at startup — for example in your application's start/2 — so
unhandled exceptions in supervised processes (GenServers, Tasks, Phoenix
channels) are captured automatically:
Errorgap.LoggerHandler.attach()Only log events carrying a :crash_reason are reported; ordinary log lines
are ignored. Deliver those explicitly with Errorgap.log/3.