Commit Graph

62 Commits

Author SHA1 Message Date
Simon Eskildsen acfabf31db logrus: use lower-case in comments and examples 2017-05-12 15:21:58 -04:00
Simon Eskildsen f1444e62a8 hooks: add null logger test 2017-05-12 15:15:51 -04:00
Simon Eskildsen a06c2db727 hooks: add a null logger for the lower-case import 2017-05-12 14:57:36 -04:00
Jonathan Hall 7e4197a54f Add a small warning comment 2017-04-20 09:44:21 +02:00
Jonathan Hall cc6ca6f305 Protect test entries with a mutex 2017-04-20 09:44:21 +02:00
Jonathan Hall ab2de9ffb1 Fix a few comments to conform to Go standards 2017-04-20 09:29:15 +02:00
Simon Eskildsen 26809363aa Revert "Merge pull request #384 from mnzt/master"
This reverts commit 42b84f9ec6, reversing
changes made to cf60a8c5d5.
2016-12-01 18:53:16 -05:00
Toby c8b0c0e43b
Fixing import for airbrake and adding build constraint to example hook 2016-07-27 13:12:26 +01:00
Toby a5dbcc756c
Renaming 'Sirupsen' to 'sirupsen' 2016-07-18 16:36:46 +01:00
Joern Barthel 0143a90f6e Extended test. 2016-02-22 10:46:52 +01:00
Joern Barthel be4b44b806 Added test hook. 2016-02-22 10:46:52 +01:00
Joern Barthel 088ac1380d Expose all levels (for hooks). 2016-02-22 10:46:52 +01:00
Gert-Jan Timmer 6815eb0dbd Added Build Rule
Add build rule, to only build on Linux platform, reason for adding this: This allows the usage of the logrus package within a Windows based project. Current logrus project fails to import due to the fact the syslog is missing on Windows.
2015-10-27 10:18:45 +01:00
Scott Francis faac3ea969 Remove Bugsnag 2015-10-22 20:20:45 +00:00
Peter Olds 3240988909 Split out Papertrail hook to its own repo
Signed-off-by: Peter Olds <polds@kyanicorp.com>
2015-10-09 10:28:56 -06:00
evalphobia ba64a98b3b Move sentry hook to external repository 2015-10-07 12:59:33 +09:00
Philippe Lafoucrière 297ec6fcaa Move airbrake to dedicated repo(s)
The current implementation is using an old implementation of the
Airbrake v2 api. Airbrake has release v2 since, but this package is
necessary for in-house solutions like errbit.
The number of errbit users don't justify to continue pushing this
version as the official.
That's why the official hook is now using gobrake (the official
package), and the one coming from logrus is now named "legacy".
2015-10-06 14:28:31 -04:00
devopstaku 4805f72c39 Add description about how to connect to local syslog with syslog hook 2015-09-09 21:55:50 +08:00
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