log_toolbox 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/log_toolbox/lograge_config.rb +5 -1
- data/lib/log_toolbox/version.rb +1 -1
- 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: 5ac8156b11e49224b6a2505694346bee18bb52f0672befb14e6e711cff84b45d
|
4
|
+
data.tar.gz: 5319f54b73100e5bc36ee754f8e62732fa6ded6560b73c97a93bdd72e4c1f3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d815d439efa23b6ac48b6aaaa7b977f5af22996460ab922fbf07cf3a99c65211e7ef530a59b3d378582d52f5ae9649a39ad374f31eda8d39b76550ef6ac319
|
7
|
+
data.tar.gz: f8d09ba573af4f0f7ed1cf1c65900c39a0d7c3fb67e15cb0071f5c1302e305a22827afc2149156f357f81454a0dc0b80d108ce883a4f239cc4c616de45d0aabf
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Released] - 2019-05-21
|
8
8
|
|
9
|
+
## [1.3.4] - 2020-12-03
|
10
|
+
### Addd
|
11
|
+
- Add settings to buffer_max_items and buffer_max_interval
|
12
|
+
|
9
13
|
## [1.3.3] - 2020-11-25
|
10
14
|
### Added
|
11
15
|
- Parametrize logstash protocol
|
@@ -10,6 +10,8 @@ module LogToolbox
|
|
10
10
|
LOGSTASH_URL = ENV['LOGSTASH_URL']
|
11
11
|
LOGSTASH_PORT = ENV['LOGSTASH_PORT']
|
12
12
|
LOGSTASH_PROTOCOL = ENV.fetch('LOGSTASH_PROTOCOL', 'udp')
|
13
|
+
LOGSTASH_BUFFER_MAX_ITEMS = ENV['LOGSTASH_BUFFER_MAX_ITEMS']
|
14
|
+
LOGSTASH_BUFFER_MAX_INTERVAL = ENV['LOGSTASH_BUFFER_MAX_INTERVAL']
|
13
15
|
|
14
16
|
def self.configure
|
15
17
|
Rails.application.configure do
|
@@ -30,7 +32,9 @@ module LogToolbox
|
|
30
32
|
def configure_log_output_logstash
|
31
33
|
config.logger = LogStashLogger.new(type: LOGSTASH_PROTOCOL,
|
32
34
|
host: LOGSTASH_URL,
|
33
|
-
port: LOGSTASH_PORT
|
35
|
+
port: LOGSTASH_PORT,
|
36
|
+
buffer_max_items: LOGSTASH_BUFFER_MAX_ITEMS || 50,
|
37
|
+
buffer_max_interval: LOGSTASH_BUFFER_MAX_INTERVAL || 5)
|
34
38
|
end
|
35
39
|
|
36
40
|
def configure_log_output_stdout
|
data/lib/log_toolbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caio Almeida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lograge
|