philiprehberger-structured_logger 0.3.2 → 0.3.4
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 +11 -0
- data/README.md +20 -2
- data/lib/philiprehberger/structured_logger/formatter.rb +4 -4
- data/lib/philiprehberger/structured_logger/logger.rb +2 -2
- data/lib/philiprehberger/structured_logger/version.rb +1 -1
- data/lib/philiprehberger/structured_logger.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c97dff36fddffd8ef26c0e08eee6912b41509c203803ef11d467b8e64fa8a1a
|
|
4
|
+
data.tar.gz: 6bb760bfb58992ca97db27ef7b5a220617984256f488a2eae4e7f1bd7320eab9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 935b133170aacfd15bd0b9152cd30dd845a807fcf0e31d417fda1c2d6186c2ed0acedb11156554420370630a6151037697fa2a0f903cabe989fbb6a59234dae5
|
|
7
|
+
data.tar.gz: 2f30001a038326c9eb53e2427f85a905f001a1781bc91968e86e2ceff0a49b3bb4b0e606609242675630a73bebcd5eb3829546413f1113225ebdb06f99ca7cb3
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.4] - 2026-03-31
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Standardize README badges, support section, and license format
|
|
14
|
+
|
|
15
|
+
## [0.3.3] - 2026-03-26
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Add Sponsor badge to README
|
|
19
|
+
- Fix license section link format
|
|
20
|
+
|
|
10
21
|
## [0.3.2] - 2026-03-24
|
|
11
22
|
|
|
12
23
|
### Fixed
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/philiprehberger/rb-structured-logger/actions/workflows/ci.yml)
|
|
4
4
|
[](https://rubygems.org/gems/philiprehberger-structured_logger)
|
|
5
|
-
[](https://github.com/philiprehberger/rb-structured-logger/commits/main)
|
|
6
6
|
|
|
7
7
|
Structured JSON logger with context and child loggers
|
|
8
8
|
|
|
@@ -291,6 +291,24 @@ bundle exec rspec
|
|
|
291
291
|
bundle exec rubocop
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
+
## Support
|
|
295
|
+
|
|
296
|
+
If you find this project useful:
|
|
297
|
+
|
|
298
|
+
⭐ [Star the repo](https://github.com/philiprehberger/rb-structured-logger)
|
|
299
|
+
|
|
300
|
+
🐛 [Report issues](https://github.com/philiprehberger/rb-structured-logger/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
|
301
|
+
|
|
302
|
+
💡 [Suggest features](https://github.com/philiprehberger/rb-structured-logger/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)
|
|
303
|
+
|
|
304
|
+
❤️ [Sponsor development](https://github.com/sponsors/philiprehberger)
|
|
305
|
+
|
|
306
|
+
🌐 [All Open Source Projects](https://philiprehberger.com/open-source-packages)
|
|
307
|
+
|
|
308
|
+
💻 [GitHub Profile](https://github.com/philiprehberger)
|
|
309
|
+
|
|
310
|
+
🔗 [LinkedIn Profile](https://www.linkedin.com/in/philiprehberger)
|
|
311
|
+
|
|
294
312
|
## License
|
|
295
313
|
|
|
296
|
-
MIT
|
|
314
|
+
[MIT](LICENSE)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require
|
|
4
|
-
require
|
|
3
|
+
require 'json'
|
|
4
|
+
require 'time'
|
|
5
5
|
|
|
6
6
|
module Philiprehberger
|
|
7
7
|
module StructuredLogger
|
|
@@ -44,7 +44,7 @@ module Philiprehberger
|
|
|
44
44
|
context.each do |key, value|
|
|
45
45
|
parts << "#{key}=#{value}"
|
|
46
46
|
end
|
|
47
|
-
parts.join(
|
|
47
|
+
parts.join(' ')
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
|
|
@@ -54,7 +54,7 @@ module Philiprehberger
|
|
|
54
54
|
when :text then TextFormatter.new
|
|
55
55
|
when Proc then formatter
|
|
56
56
|
else
|
|
57
|
-
raise ArgumentError,
|
|
57
|
+
raise ArgumentError, 'Invalid formatter' unless formatter.respond_to?(:call)
|
|
58
58
|
|
|
59
59
|
formatter
|
|
60
60
|
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative
|
|
4
|
-
require_relative
|
|
5
|
-
require_relative
|
|
6
|
-
require_relative
|
|
3
|
+
require_relative 'structured_logger/version'
|
|
4
|
+
require_relative 'structured_logger/formatter'
|
|
5
|
+
require_relative 'structured_logger/async_writer'
|
|
6
|
+
require_relative 'structured_logger/logger'
|
|
7
7
|
|
|
8
8
|
module Philiprehberger
|
|
9
9
|
module StructuredLogger
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: philiprehberger-structured_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Rehberger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A zero-dependency Ruby gem for structured JSON logging with context merging,
|
|
14
14
|
child loggers, level filtering, and pluggable outputs.
|