agonzalezro / logrus_honeybadger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logrus_honeybadger

This is a simple logrus hook for sending your exceptions to the HoneyBadger service.

How to use it?

Check the logrus documentation for seeing how to configure a hook, but basically, the needed part for this one is:

log.AddHook(honeybadger.NewHook("apikey", "live", 5*time.Second))

You can as well check the example code in the repo.

About


Languages

Language:Go 100.0%