Commit Graph

324 Commits

Author SHA1 Message Date
evalphobia 5939a6cbf9 Added special field for *http.Request to Sentry hook 2015-05-22 21:14:51 +09:00
Simon Eskildsen 81e2611f37 Merge pull request #168 from squirkle/master
Added Raygun hook.
2015-05-21 10:47:48 -04:00
Philip Allen 099b1bffe0 removing raygun hook from hooks dir, adding reference in hooks table of main README.md 2015-05-21 10:28:14 -04:00
Philip Allen 25bb6a1099 Merge branch 'master' of https://github.com/Sirupsen/logrus 2015-05-21 10:25:46 -04:00
Simon Eskildsen 52919f182f Merge pull request #178 from mattbaird/patch-1
proper use of TextFormatter in documentation
2015-05-12 12:38:02 -05:00
Matthew Baird f1d275b800 proper use of TextFormatter in documentation 2015-05-12 09:27:20 -07:00
Simon Eskildsen 48c21bc05c Merge pull request #177 from xyproto/master
Terminals on Windows may not have colors
2015-05-12 09:45:09 -05:00
Alexander F Rødseth 29d30d9f63 Terminals on Windows may not have colors 2015-05-12 16:31:17 +02:00
Philip Allen d97bbff05e Moving raygun hook to its own repositiroy at github.com/squirkle/logrus-raygun-hook 2015-05-01 10:48:23 -04:00
Simon Eskildsen aaf92c9571 Merge pull request #170 from aybabtme/log-to-stderr
default logs to stderr
2015-04-30 08:58:29 +02:00
Antoine Grondin f8f08842cc default logs to stderr 2015-04-22 22:53:40 -04:00
Antoine Grondin 26709e2714 Merge pull request #171 from Sirupsen/fix/broken-test-by-json-unmarshal
assertify changed behavior and consider float64 != int
2015-04-22 22:53:12 -04:00
Antoine Grondin 9561fcd7d6 assertify changed behavior and consider float64 != int 2015-04-22 22:48:32 -04:00
Philip Allen 6b18d5cf62 Added Raygun hook. 2015-04-17 10:51:07 -04:00
Simon Eskildsen 55eb11d21d changelog: 0.7.3 2015-04-09 19:08:25 -04:00
Simon Eskildsen 7ca50a32cd Merge pull request #162 from stevvooe/timestamp-layout
Allow configuration of timestamp layout
2015-04-09 19:07:39 -04:00
Stephen J Day e14471f8f2 Allow configuration of timestamp layout
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-06 12:18:40 -07:00
Simon Eskildsen cdd90c38c6 readme: fix comment on context logger 2015-03-31 11:30:41 -04:00
Simon Eskildsen 7586a697f6 readme: add example of context logging 2015-03-31 11:24:31 -04:00
Simon Eskildsen e00ed35f54 Merge pull request #160 from gravis/patch-1
Add graylog hook to Readme
2015-03-27 10:00:09 -04:00
Philippe Lafoucrière 034cc50c51 Add graylog hook to Readme
I have updated the list to be a table instead. It's much more readable than the previous version, and used in a lot of places (ex: https://github.com/codegangsta/negroni/blob/master/README.md)
2015-03-27 09:43:24 -04:00
Simon Eskildsen ae9ba8a88e changelog: add #158 2015-03-26 22:48:30 -04:00
Simon Eskildsen 35d5aa8f70 Merge pull request #158 from scarletmeow/custom_text_format
allow custom time format string in TextFormatter
2015-03-26 22:09:19 -04:00
Tiffany Low 3e3e87a165 allow custom time format string in TextFormatter
- fixes examples in README.md that incorrectly state usage of
  RFC3339Nano format instead of RFC3339
2015-03-26 16:15:06 -07:00
Simon Eskildsen 3fc34d061b Merge pull request #154 from imkira/master
improved: move level check from entry to logger and bail out faster
2015-03-20 00:05:19 -04:00
Mário Freitas a4a5df2c1f improved: move level check from entry to logger and bail out faster 2015-03-20 12:05:33 +09:00
Simon Eskildsen fa58c5d59f readme: move bugsnag docs 2015-03-19 11:26:39 -04: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
Simon Eskildsen 2471adf231 Merge pull request #148 from noxiouz/remove_unused_regexp
Remove unused regexp
2015-03-19 10:06:15 -04:00
Simon Eskildsen cf302ffdee Merge branch 'logstash' 2015-03-19 10:05:18 -04:00
Simon Eskildsen e178ef4efd formatter/logstash: style 2015-03-19 10:04:53 -04:00
Simon Eskildsen 2d359740a4 text_formatter: remove unneeded regexp 2015-03-19 10:03:27 -04:00
Matt Bostock bc1129f48e Remove outdated version of Airbrake hook
It seems unnecessary to duplicate the code (which is now outdated) in
the README. Instead, link to the built-in hooks where a user can see
the code.
2015-03-19 10:03:27 -04:00
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
Matt Bostock 4fcb55c734 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-19 10:03:27 -04:00
Simon Eskildsen 9cc13fab16 examples/basic: add debug level 2015-03-19 10:03:27 -04:00
Simon Eskildsen 566a97d868 json_formatter: add tests for field clashes and newline 2015-03-19 10:03:27 -04:00
Simon Eskildsen 0fa54be10f text_formatter: add field to disable sorting 2015-03-19 10:03:27 -04:00
Simon Eskildsen 0dd045932f json_formatter: always cast errors to strings
Fixes #137
2015-03-19 10:03:27 -04:00
Matt Bostock 31897e2db5 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-19 10:03:27 -04:00
Matt Bostock e803eeed62 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-19 10:03:27 -04:00
Henrik Hodne ff5ba169e8 text-formatter: do not quote 9 2015-03-19 10:03:26 -04:00
Nikolay Kirsh 9aea821200 fix Second const 2015-03-19 10:03:26 -04:00
Simon Eskildsen 5be851d706 text_formatter: improve comments 2015-03-19 10:03:26 -04:00
Steeve Lennmark 115ae7564e Add option to show full timestamp in TextFormatter
Sometimes elapsed seconds just aren't enough.
2015-03-19 10:03:26 -04:00
Lorenzo Villani 9c9013ac4f Change DebugLevel color to gray 2015-03-19 10:03:26 -04:00
Simon Eskildsen 7495181ab1 text_formatter: remove unneeded regexp 2015-03-19 09:59:55 -04:00
Simon Eskildsen 347abac2ab Merge pull request #149 from alphagov/improve_airbrake_hook
[#76800642] Rework the Airbrake hook
2015-03-19 09:56:24 -04:00
Burke Libbey 83752ed3c5
hooks: Add BugSnag hook 2015-03-16 15:34:10 -04:00