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
Joel C
2a0c368551
Add log_level option ( #39 )
2017-05-15 12:40:44 +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
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
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
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
4115e6383b
Code quality
2015-10-23 17:19:06 +02:00
jules
7412cd5cf3
Add an option to use the Rails instrumentation
2015-10-23 15:47:52 +02:00
Duncan Williams
89fdbb0e49
fixing some small bugs
2015-10-23 14:53:21 +02:00
Duncan Williams
e5cff12673
using pluggable loggers
...
separating out the base logger behaviour
and logging of specific parts of request / response
into pluggable components
also setting the defualt formatter for the logger
2015-10-23 14:53:19 +02:00
Rodrigo Souto
1b834e1dc1
add support for obfuscated parameters
...
Now you may override the method 'sensitive_parameters' with a list of
parameters that should be obfuscated on the log. If the lib is loaded on
a Rails application, uses the 'filter_parameters' attribute as default
value for 'sensitive_parameters'.
2015-10-23 14:52:27 +02:00
Vladimir Kochnev
28bb59e247
Unsubscribe notifier in ensure block
...
In case of unhandled exception we should unsubscribe notifier anyway.
Related to #7 .
2015-06-29 12:47:55 +03:00
Vladimir Kochnev
296705e02e
clean up middleware code & unsubscribe in the end
2015-06-26 00:06:31 +03:00
aserafin
f465c1027c
remove benchmark dependency, for logging db_runtime use instance variable and not env, do not overwrite call! anymore
2015-05-18 22:38:43 +02:00
aaron
d176b057dc
fix error: uninitialized constant Benchmark
2015-04-30 23:11:31 +08:00
aserafin
4b662e5c23
pass logger as option to middleware so it's easily usable when grape is mounted inside rails
2015-04-16 12:48:21 +02:00
aserafin
adde009a64
first commit
2015-04-14 14:29:07 +02:00