logstruct 0.0.1 → 0.0.2.pre.rc1
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 +26 -2
- data/LICENSE +21 -0
- data/README.md +67 -0
- data/lib/log_struct/concerns/configuration.rb +93 -0
- data/lib/log_struct/concerns/error_handling.rb +94 -0
- data/lib/log_struct/concerns/logging.rb +45 -0
- data/lib/log_struct/config_struct/error_handling_modes.rb +25 -0
- data/lib/log_struct/config_struct/filters.rb +80 -0
- data/lib/log_struct/config_struct/integrations.rb +89 -0
- data/lib/log_struct/configuration.rb +59 -0
- data/lib/log_struct/enums/error_handling_mode.rb +22 -0
- data/lib/log_struct/enums/error_reporter.rb +14 -0
- data/lib/log_struct/enums/event.rb +48 -0
- data/lib/log_struct/enums/level.rb +66 -0
- data/lib/log_struct/enums/source.rb +26 -0
- data/lib/log_struct/enums.rb +9 -0
- data/lib/log_struct/formatter.rb +224 -0
- data/lib/log_struct/handlers.rb +27 -0
- data/lib/log_struct/hash_utils.rb +21 -0
- data/lib/log_struct/integrations/action_mailer/callbacks.rb +100 -0
- data/lib/log_struct/integrations/action_mailer/error_handling.rb +173 -0
- data/lib/log_struct/integrations/action_mailer/event_logging.rb +90 -0
- data/lib/log_struct/integrations/action_mailer/metadata_collection.rb +78 -0
- data/lib/log_struct/integrations/action_mailer.rb +50 -0
- data/lib/log_struct/integrations/active_job/log_subscriber.rb +104 -0
- data/lib/log_struct/integrations/active_job.rb +38 -0
- data/lib/log_struct/integrations/active_record.rb +258 -0
- data/lib/log_struct/integrations/active_storage.rb +94 -0
- data/lib/log_struct/integrations/carrierwave.rb +111 -0
- data/lib/log_struct/integrations/good_job/log_subscriber.rb +228 -0
- data/lib/log_struct/integrations/good_job/logger.rb +73 -0
- data/lib/log_struct/integrations/good_job.rb +111 -0
- data/lib/log_struct/integrations/host_authorization.rb +81 -0
- data/lib/log_struct/integrations/integration_interface.rb +21 -0
- data/lib/log_struct/integrations/lograge.rb +114 -0
- data/lib/log_struct/integrations/rack.rb +31 -0
- data/lib/log_struct/integrations/rack_error_handler/middleware.rb +146 -0
- data/lib/log_struct/integrations/rack_error_handler.rb +32 -0
- data/lib/log_struct/integrations/shrine.rb +75 -0
- data/lib/log_struct/integrations/sidekiq/logger.rb +43 -0
- data/lib/log_struct/integrations/sidekiq.rb +39 -0
- data/lib/log_struct/integrations/sorbet.rb +49 -0
- data/lib/log_struct/integrations.rb +41 -0
- data/lib/log_struct/log/action_mailer.rb +55 -0
- data/lib/log_struct/log/active_job.rb +64 -0
- data/lib/log_struct/log/active_storage.rb +78 -0
- data/lib/log_struct/log/carrierwave.rb +82 -0
- data/lib/log_struct/log/error.rb +76 -0
- data/lib/log_struct/log/good_job.rb +151 -0
- data/lib/log_struct/log/interfaces/additional_data_field.rb +20 -0
- data/lib/log_struct/log/interfaces/common_fields.rb +42 -0
- data/lib/log_struct/log/interfaces/message_field.rb +20 -0
- data/lib/log_struct/log/interfaces/request_fields.rb +36 -0
- data/lib/log_struct/log/plain.rb +53 -0
- data/lib/log_struct/log/request.rb +76 -0
- data/lib/log_struct/log/security.rb +80 -0
- data/lib/log_struct/log/shared/add_request_fields.rb +29 -0
- data/lib/log_struct/log/shared/merge_additional_data_fields.rb +28 -0
- data/lib/log_struct/log/shared/serialize_common.rb +36 -0
- data/lib/log_struct/log/shrine.rb +70 -0
- data/lib/log_struct/log/sidekiq.rb +50 -0
- data/lib/log_struct/log/sql.rb +126 -0
- data/lib/log_struct/log.rb +43 -0
- data/lib/log_struct/log_keys.rb +102 -0
- data/lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb +36 -0
- data/lib/log_struct/multi_error_reporter.rb +149 -0
- data/lib/log_struct/param_filters.rb +89 -0
- data/lib/log_struct/railtie.rb +31 -0
- data/lib/log_struct/semantic_logger/color_formatter.rb +209 -0
- data/lib/log_struct/semantic_logger/formatter.rb +94 -0
- data/lib/log_struct/semantic_logger/logger.rb +129 -0
- data/lib/log_struct/semantic_logger/setup.rb +219 -0
- data/lib/log_struct/sorbet/serialize_symbol_keys.rb +23 -0
- data/lib/log_struct/sorbet.rb +13 -0
- data/lib/log_struct/string_scrubber.rb +84 -0
- data/lib/log_struct/version.rb +6 -0
- data/lib/log_struct.rb +37 -0
- data/lib/logstruct.rb +2 -6
- data/logstruct.gemspec +52 -0
- metadata +221 -5
- data/Rakefile +0 -5
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DocSpring
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-09-05 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: lograge
|
@@ -37,6 +37,146 @@ dependencies:
|
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '7.0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: semantic_logger
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.15'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.15'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: sorbet-runtime
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.5'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.5'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: bugsnag
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '6.26'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '6.26'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: carrierwave
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '3.0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: honeybadger
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '5.4'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '5.4'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rollbar
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.4'
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.4'
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: sentry-ruby
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '5.15'
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '5.15'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: shrine
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '3.5'
|
145
|
+
type: :development
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.5'
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: sidekiq
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '7.2'
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '7.2'
|
166
|
+
- !ruby/object:Gem::Dependency
|
167
|
+
name: sorbet
|
168
|
+
requirement: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0.5'
|
173
|
+
type: :development
|
174
|
+
prerelease: false
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.5'
|
40
180
|
description: An opinionated and type-safe structured logging solution. Configures
|
41
181
|
any Rails app to log JSON to stdout. Structured logging is automatically configured
|
42
182
|
for many gems, including Sidekiq, Carrierwave, Shrine, etc. Log messages, params,
|
@@ -48,8 +188,84 @@ extensions: []
|
|
48
188
|
extra_rdoc_files: []
|
49
189
|
files:
|
50
190
|
- CHANGELOG.md
|
51
|
-
-
|
191
|
+
- LICENSE
|
192
|
+
- README.md
|
193
|
+
- lib/log_struct.rb
|
194
|
+
- lib/log_struct/concerns/configuration.rb
|
195
|
+
- lib/log_struct/concerns/error_handling.rb
|
196
|
+
- lib/log_struct/concerns/logging.rb
|
197
|
+
- lib/log_struct/config_struct/error_handling_modes.rb
|
198
|
+
- lib/log_struct/config_struct/filters.rb
|
199
|
+
- lib/log_struct/config_struct/integrations.rb
|
200
|
+
- lib/log_struct/configuration.rb
|
201
|
+
- lib/log_struct/enums.rb
|
202
|
+
- lib/log_struct/enums/error_handling_mode.rb
|
203
|
+
- lib/log_struct/enums/error_reporter.rb
|
204
|
+
- lib/log_struct/enums/event.rb
|
205
|
+
- lib/log_struct/enums/level.rb
|
206
|
+
- lib/log_struct/enums/source.rb
|
207
|
+
- lib/log_struct/formatter.rb
|
208
|
+
- lib/log_struct/handlers.rb
|
209
|
+
- lib/log_struct/hash_utils.rb
|
210
|
+
- lib/log_struct/integrations.rb
|
211
|
+
- lib/log_struct/integrations/action_mailer.rb
|
212
|
+
- lib/log_struct/integrations/action_mailer/callbacks.rb
|
213
|
+
- lib/log_struct/integrations/action_mailer/error_handling.rb
|
214
|
+
- lib/log_struct/integrations/action_mailer/event_logging.rb
|
215
|
+
- lib/log_struct/integrations/action_mailer/metadata_collection.rb
|
216
|
+
- lib/log_struct/integrations/active_job.rb
|
217
|
+
- lib/log_struct/integrations/active_job/log_subscriber.rb
|
218
|
+
- lib/log_struct/integrations/active_record.rb
|
219
|
+
- lib/log_struct/integrations/active_storage.rb
|
220
|
+
- lib/log_struct/integrations/carrierwave.rb
|
221
|
+
- lib/log_struct/integrations/good_job.rb
|
222
|
+
- lib/log_struct/integrations/good_job/log_subscriber.rb
|
223
|
+
- lib/log_struct/integrations/good_job/logger.rb
|
224
|
+
- lib/log_struct/integrations/host_authorization.rb
|
225
|
+
- lib/log_struct/integrations/integration_interface.rb
|
226
|
+
- lib/log_struct/integrations/lograge.rb
|
227
|
+
- lib/log_struct/integrations/rack.rb
|
228
|
+
- lib/log_struct/integrations/rack_error_handler.rb
|
229
|
+
- lib/log_struct/integrations/rack_error_handler/middleware.rb
|
230
|
+
- lib/log_struct/integrations/shrine.rb
|
231
|
+
- lib/log_struct/integrations/sidekiq.rb
|
232
|
+
- lib/log_struct/integrations/sidekiq/logger.rb
|
233
|
+
- lib/log_struct/integrations/sorbet.rb
|
234
|
+
- lib/log_struct/log.rb
|
235
|
+
- lib/log_struct/log/action_mailer.rb
|
236
|
+
- lib/log_struct/log/active_job.rb
|
237
|
+
- lib/log_struct/log/active_storage.rb
|
238
|
+
- lib/log_struct/log/carrierwave.rb
|
239
|
+
- lib/log_struct/log/error.rb
|
240
|
+
- lib/log_struct/log/good_job.rb
|
241
|
+
- lib/log_struct/log/interfaces/additional_data_field.rb
|
242
|
+
- lib/log_struct/log/interfaces/common_fields.rb
|
243
|
+
- lib/log_struct/log/interfaces/message_field.rb
|
244
|
+
- lib/log_struct/log/interfaces/request_fields.rb
|
245
|
+
- lib/log_struct/log/plain.rb
|
246
|
+
- lib/log_struct/log/request.rb
|
247
|
+
- lib/log_struct/log/security.rb
|
248
|
+
- lib/log_struct/log/shared/add_request_fields.rb
|
249
|
+
- lib/log_struct/log/shared/merge_additional_data_fields.rb
|
250
|
+
- lib/log_struct/log/shared/serialize_common.rb
|
251
|
+
- lib/log_struct/log/shrine.rb
|
252
|
+
- lib/log_struct/log/sidekiq.rb
|
253
|
+
- lib/log_struct/log/sql.rb
|
254
|
+
- lib/log_struct/log_keys.rb
|
255
|
+
- lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb
|
256
|
+
- lib/log_struct/multi_error_reporter.rb
|
257
|
+
- lib/log_struct/param_filters.rb
|
258
|
+
- lib/log_struct/railtie.rb
|
259
|
+
- lib/log_struct/semantic_logger/color_formatter.rb
|
260
|
+
- lib/log_struct/semantic_logger/formatter.rb
|
261
|
+
- lib/log_struct/semantic_logger/logger.rb
|
262
|
+
- lib/log_struct/semantic_logger/setup.rb
|
263
|
+
- lib/log_struct/sorbet.rb
|
264
|
+
- lib/log_struct/sorbet/serialize_symbol_keys.rb
|
265
|
+
- lib/log_struct/string_scrubber.rb
|
266
|
+
- lib/log_struct/version.rb
|
52
267
|
- lib/logstruct.rb
|
268
|
+
- logstruct.gemspec
|
53
269
|
homepage: https://logstruct.com
|
54
270
|
licenses:
|
55
271
|
- MIT
|
@@ -65,14 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
281
|
requirements:
|
66
282
|
- - ">="
|
67
283
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
284
|
+
version: 3.2.0
|
69
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
286
|
requirements:
|
71
287
|
- - ">="
|
72
288
|
- !ruby/object:Gem::Version
|
73
289
|
version: '0'
|
74
290
|
requirements: []
|
75
|
-
rubygems_version: 3.6.
|
291
|
+
rubygems_version: 3.6.2
|
76
292
|
specification_version: 4
|
77
293
|
summary: Type-Safe JSON Structured Logging for Rails Apps
|
78
294
|
test_files: []
|