ruby_smart-simple_logger 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d250fc038e12f5d76ede43d6714efb039be7b6093bd4ea8abca6dfc937d8cc
|
4
|
+
data.tar.gz: 52d4bc7495fea29db91b336161b7af454d55b9f22e76f1e83291264844686df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf60c99604f5da1abd4bc4ffa5c536c233728c242c7c198849fd1838cacf856a0abaaef39f6cb1aa46fc9adbd85be329637f01e0844c39e43bdac660db311a20
|
7
|
+
data.tar.gz: 7c618af918fd6a19228f152fd456a8a4f2d99bbeceae1aec4d2aa6706f11f2138ba575390d68076f2d07e29fe09fbcdce75c64baed06a887becb752662f391bd
|
data/docs/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# RubySmart::SimpleLogger - CHANGELOG
|
2
2
|
|
3
|
+
## [1.1.1] - 2023-02-07
|
4
|
+
* **[fix]** 'ruby 2.6.x' kwargs for `::Logger::LogDevice` messed up with 'binmode'
|
5
|
+
|
3
6
|
## [1.1.0] - 2023-02-07
|
4
7
|
* **[add]** `#processed` method for logger
|
5
8
|
* **[ref]** `Debugger` to enforce a 'DEBUG' severity
|
@@ -81,13 +81,19 @@ module RubySmart
|
|
81
81
|
|
82
82
|
# special case handling to additionally stdout logs
|
83
83
|
::RubySmart::SimpleLogger::Devices::MultiDevice.register(
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
84
|
+
if GemInfo.match?(RUBY_VERSION, '< 2.7')
|
85
|
+
::Logger::LogDevice.new(_logdev(builtin),
|
86
|
+
shift_age: opts[:shift_age] || 0,
|
87
|
+
shift_size: opts[:shift_size] || 1048576,
|
88
|
+
shift_period_suffix: opts[:shift_period_suffix])
|
89
|
+
else
|
90
|
+
::Logger::LogDevice.new(_logdev(builtin),
|
91
|
+
shift_age: opts[:shift_age] || 0,
|
92
|
+
shift_size: opts[:shift_size] || 1048576,
|
93
|
+
shift_period_suffix: opts[:shift_period_suffix],
|
94
|
+
binmode: opts[:binmode])
|
95
|
+
end,
|
96
|
+
::RubySmart::SimpleLogger::Formatter.new(format: device_format, nl: _nl(opts), clr: false))
|
91
97
|
.register(STDOUT, ::RubySmart::SimpleLogger::Formatter.new(format: device_format, nl: _nl(opts), clr: opts[:clr]))
|
92
98
|
else
|
93
99
|
builtin
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_smart-simple_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Gonsior
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
|
-
rubygems_version: 3.3.
|
164
|
+
rubygems_version: 3.3.26
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: A simple, multifunctional logging library for Ruby.
|