logstruct 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/README.md +1 -1
- data/lib/log_struct/bounded_input.rb +101 -0
- data/lib/log_struct/concerns/configuration.rb +10 -10
- data/lib/log_struct/concerns/error_handling.rb +21 -0
- data/lib/log_struct/config_struct/filters.rb +23 -9
- data/lib/log_struct/config_struct/limits.rb +1 -1
- data/lib/log_struct/enums/log_field.rb +0 -3
- data/lib/log_struct/formatter.rb +54 -58
- data/lib/log_struct/hash_utils.rb +11 -4
- data/lib/log_struct/integrations/ahoy.rb +3 -2
- data/lib/log_struct/integrations/carrierwave.rb +3 -6
- data/lib/log_struct/integrations/lograge.rb +4 -10
- data/lib/log_struct/integrations/shrine.rb +1 -1
- data/lib/log_struct/log/action_mailer/delivered.rb +10 -0
- data/lib/log_struct/log/action_mailer/delivery.rb +10 -0
- data/lib/log_struct/log/action_mailer/error.rb +10 -0
- data/lib/log_struct/log/carrierwave/delete.rb +0 -4
- data/lib/log_struct/log/carrierwave/download.rb +0 -6
- data/lib/log_struct/log/carrierwave/upload.rb +0 -6
- data/lib/log_struct/log/carrierwave.rb +2 -8
- data/lib/log_struct/log/error.rb +10 -0
- data/lib/log_struct/log/plain.rb +10 -0
- data/lib/log_struct/log/puma/error.rb +10 -0
- data/lib/log_struct/log/puma/shutdown.rb +10 -0
- data/lib/log_struct/log/puma/start.rb +10 -0
- data/lib/log_struct/log/request.rb +10 -0
- data/lib/log_struct/log/security/blocked_host.rb +10 -0
- data/lib/log_struct/log/security/csrf_violation.rb +10 -0
- data/lib/log_struct/log/security/ip_spoof.rb +10 -0
- data/lib/log_struct/log/sidekiq/error.rb +10 -0
- data/lib/log_struct/log/sidekiq/log.rb +10 -0
- data/lib/log_struct/log/sql.rb +10 -0
- data/lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb +5 -3
- data/lib/log_struct/param_filters.rb +10 -28
- data/lib/log_struct/shared/merge_additional_data_fields.rb +21 -5
- data/lib/log_struct/string_scrubber.rb +7 -6
- data/lib/log_struct/version.rb +1 -1
- data/logstruct.gemspec +1 -1
- metadata +4 -2
data/logstruct.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = "An opinionated and type-safe structured logging solution. " \
|
|
13
13
|
"Configures any Rails app to log JSON to stdout. " \
|
|
14
14
|
"Structured logging is automatically configured for many gems, including Sidekiq, Carrierwave, Shrine, etc. " \
|
|
15
|
-
"Log messages, params, and job args are
|
|
15
|
+
"Log messages, params, and job args are filtered by sensitive keys and scrubbed for common credential and personal data patterns."
|
|
16
16
|
spec.homepage = "https://logstruct.com"
|
|
17
17
|
spec.license = "MIT"
|
|
18
18
|
spec.required_ruby_version = ">= 3.3.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logstruct
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DocSpring
|
|
@@ -270,7 +270,8 @@ dependencies:
|
|
|
270
270
|
description: An opinionated and type-safe structured logging solution. Configures
|
|
271
271
|
any Rails app to log JSON to stdout. Structured logging is automatically configured
|
|
272
272
|
for many gems, including Sidekiq, Carrierwave, Shrine, etc. Log messages, params,
|
|
273
|
-
and job args are
|
|
273
|
+
and job args are filtered by sensitive keys and scrubbed for common credential and
|
|
274
|
+
personal data patterns.
|
|
274
275
|
email:
|
|
275
276
|
- support@docspring.com
|
|
276
277
|
executables: []
|
|
@@ -282,6 +283,7 @@ files:
|
|
|
282
283
|
- README.md
|
|
283
284
|
- lib/log_struct.rb
|
|
284
285
|
- lib/log_struct/boot_buffer.rb
|
|
286
|
+
- lib/log_struct/bounded_input.rb
|
|
285
287
|
- lib/log_struct/concerns/configuration.rb
|
|
286
288
|
- lib/log_struct/concerns/error_handling.rb
|
|
287
289
|
- lib/log_struct/concerns/logging.rb
|