Commit graph

97 commits

Author SHA1 Message Date
ed25898685
Add support for Grape 2.4 (#93)
* Fix RequestLogger middleware to handle Grape 2.4 breaking chnage

* Make RequestLogger#initialize signature match Grape 2.4

* Update changelog

* Require grape >= 2.4 in gemspec

---------

Co-authored-by: Cedric Darricau <cedricdarricau@gmail.com>
2025-08-07 12:03:04 -07:00
5a9ef5d801
Add rubocop with a todo list (#90)
* Add rubocop with a todo list

* Run rubocop as part of the CI workflow

* Autofix for RuboCop: Layout/ElseAlignment

* Regen autogen, removing all claude-scratchpad/*

* Autofix RuboCop Layout/EmptyLine

* AutoFix RuboCop Style/ZeroLengthPredicate

* AutoFix RuboCop Layout/EmptyLinesAroundAccessModifier

* AutoFix RuboCop Layout/EmptyLinesAroundMethodBody

* AutoFix RuboCop Layout/EmptyLinesAroundBlockBody

* AutoFix RuboCop Layout/EmptyLinesAroundClassBody

* AutoFix RuboCop Layout/EndAlignment

* AutoFix RuboCop Layout/ExtraSpacing

* AutoFix RuboCop Layout/FirstHashElementIndentation

* AutoFix RuboCop Layout/HashAlignment

* AutoFix RuboCop Layout/IndentationWidth

* Regenerate todo

* AutoFix RuboCop Layout/SpaceBeforeBlockBraces

* AutoFix RuboCop Layout/SpaceBeforeComma

* AutoFix RuboCop Layout/SpaceInsideBlockBraces

* AutoFix RuboCop Layout/SpaceInsideHashLiteralBraces

* AutoFix RuboCop Layout/TrailingEmptyLines

* Update ci.yml

Co-authored-by: Pieter Oliver <68863060+pieterocp@users.noreply.github.com>

* WIP: Remove claude-scratchpad cruft from rubocop todo

* Specify files explicity in rubocop rake task

* Pin rubocop version to 1.77.0

* AutoFix RuboCop Style/TrailingCommaInHashLiteral

* AutoFix RuboCop Style/StringLiteralsInInterpolation

* AutoFix RuboCop Style/StringLiterals

* AutoFix RuboCop Style/RescueStandardError

* AutoFix RuboCop Style/RedundantPercentQ

* AutoFix RuboCop Style/RedundantConstantBase

* AutoFix RuboCop Style/QuotedSymbols

* AutoFix RuboCop Style/PercentLiteralDelimiters

* AutoFix RuboCop Style/ParallelAssignment

* AutoFix RuboCop Style/MultilineIfModifier

* AutoFix RuboCop Style/Lambda

* AutoFix RuboCop Style/IfUnlessModifier

* AutoFix RuboCop Style/HashSyntax

* AutoFix RuboCop Style/GuardClause

* AutoFix RuboCop Style/ExpandPathArguments

* AutoFix RuboCop Style/BlockDelimiters

* AutoFix RuboCop Style/BlockComments

* AutoFix RuboCop Lint/UnusedMethodArgument

* AutoFix RuboCop Lint/SymbolConversion

* Fix auto-gen formatting + RuboCop AutoFix Style/ModuleFunction

* Code style

---------

Co-authored-by: Pieter Oliver <pieter.oliver@nourishcare.com>
Co-authored-by: Pieter Oliver <68863060+pieterocp@users.noreply.github.com>
2025-07-14 15:20:17 -07:00
ca80cfef6c
Bump version to 2.1.2 2025-07-09 18:17:44 -07:00
7e15b97cb4
Handle symbol param keys during filtering
In testing these keys can be symbols, so when we're working with
encodings make sure we have strings before trying to force any encodings
on keys.
2025-07-09 18:11:05 -07:00
dbba26bc2c
Bump version to 2.1.1 2025-07-09 17:46:03 -07:00
31d46bc8f8
Bump version to 2.1.0 2025-07-09 17:44:19 -07:00
71c1adf3eb
Add ActionDispatch request ID to logger arguments hash 2025-07-09 17:40:48 -07:00
c19b1d3732
Bump version to 2.0.1 2025-07-09 16:57:51 -07:00
362dd0a92e
Bump version to 2.0.0 2025-07-09 16:55:57 -07:00
f35dc1e9d6
Code style 2025-06-28 07:37:22 -04:00
Pieter Oliver
fe2d196494 Fix some small, non breaking changes typoes 2025-06-27 16:44:21 +01:00
Dhruv Paranjape
b94fcb3046
LoggerReporter: clone the logger parameter (#77) 2025-06-27 05:47:15 -07:00
59813dedbc
Merge pull request #70 from oslivan/master
fix view time precise issue
2025-06-27 08:44:33 -04:00
0d70063ae5
Merge pull request #54 from abicky/scrub-invalid-byte-sequence-keys
Convert parameter keys to ASCII-8BIT before filtering
2025-06-27 08:42:15 -04:00
ce103dad5a
Get specs running again, but they still fail (#86)
* Get specs running again, but they still fail on Ruby 3.4

* Add Ruby 3.4 to test matrix

* Remove bundler from dev dependencies
2025-06-27 05:16:48 -07:00
Adrian Serafin
8afa893a69 bump version to 1.8.4 2020-08-26 11:12:37 +02:00
David Shaffer
36d23146a0
Bugfix: Require ActiveSupport::ParameterFilter before inheriting from it (#72) 2020-08-26 11:10:14 +02:00
yanpz
ea6afd1d0f fix view time precise issue 2020-04-04 20:49:13 +08:00
aserafin
fd8d2d457f bump version to 1.8.3 2019-09-12 09:29:44 +02:00
aserafin
4bced793a9 for rails < 6.0.0 still use ActionDispatch::Http::ParameterFilter 2019-09-10 17:08:04 +02:00
aserafin
3eef054935 bump version to 1.8.2 2019-09-05 17:01:17 +02:00
Elie
38b3edf2de Add new line to logstash formatter (#58) 2019-09-05 16:58:45 +02:00
Joshua Sierles
f89177ff53 fix deprecation warning from Rails 6 (#63) 2019-09-05 16:58:32 +02:00
aserafin
c2b29ebf8a bump version to 1.8.1 2019-01-31 08:54:05 +01:00
motoki-shun
051636d873 Add new line on json formatter (#52) 2018-11-16 18:01:17 +01:00
abicky
58e7475b64 Convert parameter keys to ASCII-8BIT before filtering
This commit resolves https://github.com/aserafin/grape_logging/issues/53.
2018-09-26 00:15:27 +09: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
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