agonzalezro / logrus_honeybadger

0 stars 0 forks source link

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.