Commit Graph

44 Commits

Author SHA1 Message Date
Allan Glen 1b73323cd0 Allow sentry hook to be created using an initialized raven client 2015-07-09 10:12:05 -06:00
Adam Wonak afe474b84f updated readme with usage example 2015-07-07 11:52:22 -05:00
Adam Wonak 8ce3556d31 Added a new SentryHook initialization func for setting tags. 2015-07-07 11:41:45 -05:00
evalphobia 5939a6cbf9 Added special field for *http.Request to Sentry hook 2015-05-22 21:14:51 +09:00
Simon Eskildsen 8be81604a8 Merge pull request #152 from burke/bugsnag-hook
hooks: Add BugSnag hook
2015-03-19 11:23:38 -04:00
Burke Libbey d96cee72fa
Code review changes 2015-03-19 11:21:40 -04:00
Burke Libbey 83752ed3c5
hooks: Add BugSnag hook 2015-03-16 15:34:10 -04: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
Matt Bostock 78dee3c0ba Rename package from logrus_airbrake to airbrake
Using underscores in package names in discouraged:
https://golang.org/doc/effective_go.html#package-names

Given that this package is in a subdirectory of the logrus package,
the name `airbrake` should be sufficiently descriptive.
2015-03-10 17:45:12 +00:00
Antoine Grondin 2cea0f0d14 Merge pull request #145 from alphagov/add_tests_to_airbrake_hook
Add integration test to Airbrake hook
2015-03-09 11:58:39 -04:00
Matt Bostock 8ba09b1c21 Remove misleading comment in Airbrake hook
As far as I can tell, exceptions are always sent regardless of what
`airbrake.Environment` is set to.
2015-03-06 16:32:18 +00:00
Matt Bostock 26ea5be9c3 Add integration test to Airbrake hook
Add a test for the Airbrake hook to:

a) document how the hook is intended to work

b) test that an XML payload is received with the expected message
2015-03-06 16:18:47 +00:00
Nikolay Kirsh c810928262 fix Second const 2015-03-02 16:25:19 +05:00
xi3 60d80a6d2c Update papertrail.go
Report all log data,  not just the entry.message.
2014-12-19 21:11:58 +08:00
Roman Konz 5e322e5cfe Update README.md - changed conflicting imports 2014-12-05 11:00:48 +01:00
Simon Eskildsen cc09837bcd Merge pull request #74 from gigaroby/sentry-hook
Added sentry hook
2014-11-25 12:46:20 -05:00
Roberto Bampi 5df4b882d0 timeout is now configurable and documented 2014-11-25 13:36:08 +01:00
Peter Olds f9e0c0dd4a Fix Papertrail bug
Conflicts:
	hooks/papertrail/papertrail.go
2014-11-23 17:11:40 +00:00
Vincent Bernat c0b1ea991b syslog: let syslog output lookup level directly in Entry struct
Log level has moved from `entry.Data["level"]` to `entry.Level`. Use
that to get the right level.

Fix: #82
2014-11-23 18:02:34 +01:00
Roberto Bampi 383ab1fb69 added delivery timeout 2014-11-06 21:17:29 +01:00
Roberto Bampi 8bbc74e9fb various fixes 2014-11-06 10:07:41 +01:00
Roberto Bampi 4e014d4268 added tests 2014-11-02 19:31:15 +01:00
Roberto Bampi 9bf47770d5 added sentry logger 2014-11-01 19:55:40 +01:00
Alex Payne 51770fb4eb Use third-party UDP testing library to tighten up test. 2014-09-13 13:53:20 -07:00
Alex Payne e949967022 Remove cruft. 2014-09-13 13:52:51 -07:00
Alex Payne ced81183ef Proper log levels. 2014-09-13 13:52:24 -07:00
Alex Payne dbf7fad1dc Don't disconnect on every Fire() 2014-09-13 13:04:25 -07:00
Alex Payne 91f92800d7 Include number of bytes written as debugging output. 2014-09-13 13:03:40 -07:00
Alex Payne 29c4caff54 Log just the message, not the stringified version of the whole log line. 2014-09-13 13:03:15 -07:00
Alex Payne 0a2a97ea82 Improved documentation for Papertrail hook. 2014-09-13 11:55:21 -07:00
Alex Payne f42d215828 README for Papertrail hook with usage info. 2014-09-12 17:44:28 -07:00
Alex Payne 4c9637c8b4 Papertrail hook, uses their UDP interface. 2014-09-12 17:40:09 -07:00
Didip Kerabat 2a6183b106 Updated to use new style of log level. 2014-07-27 22:43:21 -07:00
Didip Kerabat 6d5b58f3d6 Merge upstream 2014-07-27 22:19:58 -07:00
Didip Kerabat 426748f339 Merge branch 'master' of github.com:didip/logrus 2014-07-27 22:05:06 -07:00
Didip Kerabat 491a120617 Call entry.String() directly. 2014-07-27 22:04:55 -07:00
Didip Kerabat ffc6dc63ef go fmt 2014-07-27 22:01:56 -07:00
Antoine Grondin e5621dca87 Export package func to a standard logger. 2014-07-21 21:19:55 -04:00
Didip Kerabat 24b6c463ab Update frontpage README 2014-07-18 15:47:34 -07:00
Didip Kerabat 58cc2b3fec Added README 2014-07-18 15:45:49 -07:00
Didip Kerabat 5c909080d7 SyslogHook 2014-07-18 00:28:40 -07:00
Antoine Grondin 52039d614e Checks that the `error` field is really and `error` type. 2014-07-13 14:49:59 -04:00
Simon Eskildsen b65435d801 hooks/airbrake: fix docs 2014-05-03 20:32:21 -04: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