Commit Graph

13 Commits

Author SHA1 Message Date
Toby c8b0c0e43b
Fixing import for airbrake and adding build constraint to example hook 2016-07-27 13:12:26 +01:00
Toby ed63efede8
re-adding airbrake import 2016-07-27 13:00:56 +01:00
Toby a5dbcc756c
Renaming 'Sirupsen' to 'sirupsen' 2016-07-18 16:36:46 +01:00
Austin Riendeau f811ea43df hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now 2015-10-06 14:24:51 -06:00
Austin Riendeau 457a009ed7 Fixes breaking change with removing airbrake. 2015-10-06 14:01:18 -06:00
Matt Bostock 83a820d91e Rework the Airbrake hook
Rework the Airbrake hook to:

a) change the interface so that the Airbrake credentials are stored in
an unexported struct, `airbrakeHook`, which is instantiated using the
`NewHook()` method

b) send log entries where no 'error' field is set to Airbrake, using the
`entry.Message` string as the message sent to Airbrake but continue to
allow the passing of error types using the 'error' field

Update the tests accordingly, assuring that the correct message is
received by the Airbrake server.

Also update the examples in the README, which would not have worked with
the previous implementation of the Airbrake hook.
2015-03-15 16:26:24 +00:00
Simon Eskildsen 79d043289e examples/basic: add debug level 2015-03-09 15:40:44 +00:00
Dan Buch ced531341e Saving off entry string for use in panic
as the reader is not seekable and without this the panic string is
always empty 🙀
2014-11-05 13:49:58 -05:00
Simon Eskildsen d4f08ce128 hooks: add airbrake hook
hooks: Add airbrake hook

examples: move around to avoid overloading main

airbarke move around

remove tex.tgo

readme: cleanup

readme: try something different
2014-04-23 19:55:11 -04:00
Dan Buch 058bed65b7 Modifying example to allow for both json and text formats
and regenerating the non-TTY text output example just in case I
converted it wrong.
2014-04-20 15:38:09 -04:00
Simon Eskildsen 7d02fa59d7 examples: change size to integer 2014-03-14 16:17:38 -04:00
Simon Eskildsen ec306913da Fix example 2014-03-10 19:59:18 -04:00
Simon Eskildsen 53371e3664 Add features from README 2014-03-10 19:22:08 -04:00