Commit graph

109 commits

Author SHA1 Message Date
motoki-shun
051636d873 Add new line on json formatter (#52) 2018-11-16 18:01:17 +01:00
aserafin
f4502d6723 bump version to 1.8.0 2018-04-19 10:47:33 +02:00
Dave Harris
7ae51d30d8 Add GrapeLogging::Formatters::RailsFormatter.new. Updates to README (#47) 2018-04-19 10:41:11 +02:00
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
aserafin
d4cc3e2946 fix specs 2017-09-10 20:47:23 +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
aserafin
00c95f54f0 add travis badge 2017-03-06 18:38:28 +01:00
aserafin
1c5b13ff5e require spec_helper, configure travis 2017-03-06 18:35:52 +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
Juliana Lucena
3828b50b51 Fix README example on how to set a formatter (#35) 2016-10-11 22:51:15 +02: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
Glauco Custódio
e953a23d25 Add syntax highlighting to README.md (#30) 2016-08-04 22:45:08 +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
Adrian Serafin
14f16c21c0 Merge pull request #26 from scauglog/master
add logger for client ip and ua
2016-04-19 09:24:25 +02:00
scauglog
7d3461184e Update README.md 2016-04-12 16:50:35 +02:00
romain.sagean
2717b4a3ec add client env usage 2016-04-12 11:21:13 +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
Adrian Serafin
dc18ddb1d3 change readme to reflect setting formatter being optional 2016-03-15 21:21:53 +01:00
aserafin
09f9dbc8e9 Merge branch 'guizmaii-fix/formatter' 2016-03-15 21:12:37 +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 Ivanic
11d4465fee Merge pull request #4 from aserafin/master
Merge pull request #22 from guizmaii/master
2016-03-15 15:27:15 +01:00
Adrian Serafin
876ddf37ff Merge pull request #22 from guizmaii/master
Small code simplications
2016-03-08 13:15:10 +01:00
jules
f8e0658a4d Small code lisibility simplifications 2016-03-08 12:11:15 +01:00
Jules Ivanic
35ff221946 Merge pull request #3 from aserafin/master
merge Aserafin master
2016-03-08 12:09:05 +01:00
Adrian Serafin
9b8ac7db5b Merge pull request #12 from scauglog/patch-1
word missing in README
2016-03-05 10:43:19 +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
aserafin
67cfa3a99b Merge branch 'guizmaii-master' 2016-03-05 09:20:18 +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
f1827ea8ac Merge branch 'master' of github.com:aserafin/grape_logging
Conflicts:
	README.md
2016-02-29 15:03:43 +01:00
Adrian Serafin
91a16f480c Merge pull request #20 from holstvoogd/patch-1
Add require line to example in readme
2016-02-24 13:57:23 +01:00
Arthur
1d57549c12 Update Readme
Add a require of grape_logging to the example.
2016-02-05 10:02:41 +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