Commit Graph

8 Commits

Author SHA1 Message Date
Matt Bostock 7ba71bd357 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-19 10:03:27 -04:00
Simon Eskildsen 9cc13fab16 examples/basic: add debug level 2015-03-19 10:03:27 -04: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