<div dir="ltr"><div>I have a great pleasure to announce that today I’ve released Lager-Airbrake notifier.<br></div><div><br></div><div>If you are already using the popular logging framework Lager[1] by Basho in your application, you might consider having an easy drop in component that will report the errors with the desired level of severity to AirBrake. Lager-Airbrake works as a Lager backend, it is therefore fully integrated with it, and easy to setup.</div><div><br></div><div>In your project’s rebar.config file, add lager_airbrake as a dependency:</div><div><br></div><div><br></div><div>{lager_airbrake, “.*”, {git, “<a href="https://github.com/ostinelli/lager_airbrake.git">https://github.com/ostinelli/lager_airbrake.git</a>“, “master”}}</div><div><br></div><div><br></div><div>Then include lager_airbrake_backend in your lager configuration:</div><div><br></div><div>%% Lager config</div><div>{lager, [</div><div><br></div><div><span class="" style="white-space:pre">    </span>{handlers, [</div><div><span class="" style="white-space:pre">               </span>%% Add Airbrake monitoring</div><div><span class="" style="white-space:pre">         </span>{lager_airbrake_backend, [</div><div><span class="" style="white-space:pre">                 </span>{environment, "development"},</div><div><span class="" style="white-space:pre">                    </span>{api_key, "AIRBRAKE_API_KEY"},</div><div><span class="" style="white-space:pre">                   </span>{project_id, "AIRBRAKE_PROJECT_ID"},</div><div><span class="" style="white-space:pre">                     </span>{level, warning}</div><div><span class="" style="white-space:pre">           </span>]},</div><div><br></div><div><span class="" style="white-space:pre">               </span>[...]</div><div><span class="" style="white-space:pre">      </span>]},</div><div><br></div><div><span class="" style="white-space:pre">       </span>[...]</div><div>}</div><div><br></div><div><br></div><div>You’re done.</div><div><br></div><div>Lager-Airbrake will try to use some heuristics to optimize the notification sent to Airbrake, so that errors can be easily differentiated. As you may know, in Erlang it is sometimes difficult to separate the errors based on their Type so some attempts have been done to address this reporting issue.</div><div><br></div><div>You can check Lager-Aibrake here:</div><div><a href="https://github.com/ostinelli/lager_airbrake">https://github.com/ostinelli/lager_airbrake</a></div><div><br></div><div>Best,</div><div>r.</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/basho/lager">https://github.com/basho/lager</a></div></div>