Commit graph

69 commits

Author SHA1 Message Date
Kun Liu
83117bc7e1 add spec for request_headers (#42)
* log for request headers

* add specification

* fix spec

* optimize readme

* add spec for request_headers
2017-10-13 08:46:51 +02:00
aserafin
54f3fa84e0 bump version to 1.7.0 2017-09-10 20:55:58 +02:00
aserafin
fdbbf8a97b add datetime parameter to lograge formatter 2017-09-10 20:53:12 +02:00
Jan Strnádek
7c3d7e2b70 Fix #29 (#33)
* Fix #29

* Update request_logger.rb

If it is possible use status code from error, otherwise send 500.
2017-09-10 20:46:29 +02:00
aserafin
b3c26abace bump version to 1.6.0 2017-09-01 10:01:26 +02:00
Raffael Schmid
eea802b546 Lograge formatter (#40)
* add lograge formatter

* simplify mapping
2017-09-01 09:59:00 +02:00
aserafin
30f7c515c1 bump version to 1.5.0 2017-05-15 12:42:56 +02:00
Joel C
2a0c368551 Add log_level option (#39) 2017-05-15 12:40:44 +02:00
aserafin
4ca6823d36 bump version 2017-03-06 18:41:50 +01:00
jason-uh
cc35a9ad50 port deep parameter logging from Badiapp/grape_logging (#37)
* port deep parameter logging from Badiapp/grape_logging; add some specs

* fix initializer for ParameterFilter

* PR feedback
2017-03-06 17:30:31 +01:00
Dmitry Shaposhnik
48adb780d3 Fix already configured logger formatter override (#36) 2017-03-01 09:57:53 +01:00
Adrian Serafin
a38f57ac5c Update grape_logging.rb 2016-08-18 20:50:06 +02:00
Stefan Rothlehner
1fd4d6655f Logstash formatter for grape_logging (#31)
* Logstash formatter for grape_logging

* Additional host parameter for Logstash
2016-08-17 18:37:05 +02:00
aserafin
2054d412c3 version bump 2016-05-18 15:35:35 +02:00
Kun Liu
57e6c0f395 Add log for request headers (#28)
* log for request headers

* add specification

* fix spec

* optimize readme
2016-05-18 15:33:07 +02:00
romain.sagean
d883bb9263 add client ip and ua loggers 2016-04-12 10:45:37 +02:00
Adrian Serafin
414a9cf650 Update version.rb 2016-03-18 08:43:55 +01:00
jules
ed42e77eaa .formatter= method does not exist in some Logger implementations 2016-03-15 15:30:15 +01:00
jules
933424cabf .formatter method does not exist in some Logger implementations 2016-03-15 15:28:51 +01:00
jules
f8e0658a4d Small code lisibility simplifications 2016-03-08 12:11:15 +01:00
aserafin
4541d5a6c7 introducing reporters, refactoring 2016-03-05 10:37:33 +01:00
aserafin
bce166747f make append_db_runtime actually appending db times 2016-03-05 09:21:19 +01:00
jules
d45d4956a9 Show the failure of the call 2016-02-29 16:35:18 +01:00
jules
e8fa681bb8 We should protect the call to response 2016-02-29 16:32:43 +01:00
jules
ef946bf7fe Since the Grape v0.14.1, the after callback is always called, so response could be nil if the called fail with an exception 2016-02-29 16:20:40 +01:00
jules
fe72aa1a15 Lisibility 2016-02-29 15:38:01 +01:00
jules
714f361b17 Use the https://github.com/aserafin/grape_logging/pull/18 code to add thread safety for the use of ActiveSupport::Notifications 2016-02-29 15:32:29 +01:00
jules
64f266d989 response.body is sometimes too strange to be parse by JSON, just return it, BIS 2015-10-26 16:32:27 +01:00
jules
55b75c6243 response.body is sometimes too strange to be parse by JSON, just return it 2015-10-26 16:32:14 +01:00
jules
522014fa6a response.body is sometimes too strange to be parse by JSON, BIS 2015-10-26 11:10:46 +01:00
jules
918cba5c2d response.body is sometimes too strange to be parse by JSON 2015-10-26 11:05:54 +01:00
jules
b8bd70e57b response.body is sometimes too strange to be parse by JSON 2015-10-26 10:52:46 +01:00
jules
33db51245b Update the version 2015-10-23 18:10:28 +02:00
jules
da5d32ca68 Typo 2015-10-23 17:35:50 +02:00
jules
25f0883399 After shoul be called 2015-10-23 17:33:22 +02:00
jules
7c310ec946 Code quality 2015-10-23 17:28:37 +02:00
jules
ccb9ec052e Code quality 2015-10-23 17:21:06 +02:00
jules
4115e6383b Code quality 2015-10-23 17:19:06 +02:00
jules
6c0fdeca64 Merge remote-tracking branch 'Hubbub/pluggable-loggers'
Conflicts:
	lib/grape_logging.rb
	lib/grape_logging/loggers/response.rb
	lib/grape_logging/middleware/request_logger.rb
2015-10-23 16:59:15 +02:00
jules
c90d565ebe response.body is an Array of Strings. We should serialized every body in this Array 2015-10-23 16:03:53 +02:00
jules
3fd1ba13f3 response.body is an Array of Strings. We should get the first element and It should be serialized 2015-10-23 16:01:31 +02:00
jules
7997b21b17 response.body is a string. It should be serialized 2015-10-23 15:54:53 +02:00
jules
7412cd5cf3 Add an option to use the Rails instrumentation 2015-10-23 15:47:52 +02:00
jules
c716f78f2a response.body should not be return as string 2015-10-23 15:16:55 +02:00
jules
ed8d25f89f JSON serialization was wrong 2015-10-23 15:13:30 +02:00
jules
95dcaa0979 Typo 2015-10-23 15:01:16 +02:00
jules
6bc1b9405d Don't forget to import the new formatter 2015-10-23 14:54:41 +02:00
jules
9a593ee996 Add JSON formatter 2015-10-23 14:53:58 +02:00
jules
2e0f8c2aa5 Add JSON formatter 2015-10-23 14:53:21 +02:00
Duncan Williams
de4d5c2c0f using module name of Loggers rather than Logger
also explicit to_s on response body
2015-10-23 14:53:21 +02:00