testa_logger 0.1.7 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/testa_logger/logger/options.rb +3 -4
- data/lib/testa_logger/logger.rb +1 -1
- data/lib/testa_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39c46bec38bab466b7b18cf0bd59b8a66abb7952cb1121addf07ca3fe66d4c95
|
4
|
+
data.tar.gz: 5ad27591ce1471b3e6cc1ce5aa80ebbfc52420f3972ff07db57ffe8d6bc32888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20be22950140beca8fb07cdc35bd42db687ce8c8f9eab605d4bab71845900332e649f94d9adfbac6b828d877ac1c60a2d22ac4c1b03c28487fee71c4252d1290
|
7
|
+
data.tar.gz: 88323a05ead873885ffc5e7a49c59735b190a8530423a7feee9a74411b1367763efc4ba09ef803f6a7f8c2afb561015c17a0371d062e748030e95f27d6a361f3
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ module TestaLogger
|
|
9
9
|
attr_accessor :level, :tag_length
|
10
10
|
|
11
11
|
# @return [Proc]
|
12
|
-
attr_accessor :
|
12
|
+
attr_accessor :formatter
|
13
13
|
|
14
14
|
# @return [TrueClass, FalseClass]
|
15
15
|
attr_accessor :live, :persist
|
@@ -27,14 +27,14 @@ module TestaLogger
|
|
27
27
|
app_and_groups = format_app_and_groups(app, group, subgroup)
|
28
28
|
@shift_age = "daily"
|
29
29
|
@level = DEBUG
|
30
|
-
@
|
30
|
+
@formatter = proc do |severity, datetime, _, msg|
|
31
31
|
"#{app_and_groups}[#{datetime.strftime('%Y-%m-%d %H:%M:%S.%L')}] #{format('%-5.5s', severity)} -- : #{msg}\n"
|
32
32
|
end
|
33
33
|
@live = false
|
34
34
|
@filepath = nil
|
35
35
|
@tag_length = 13
|
36
36
|
@persist = true # requires aws credentials set in env variables
|
37
|
-
@faye_url = ENV
|
37
|
+
@faye_url = ENV.fetch("WEB_SOCKET_URL") { "http://ws-service:9292/faye" }
|
38
38
|
@faye_token = ENV["FAYE_TOKEN"]
|
39
39
|
@s3_credentials = {
|
40
40
|
region: ENV["AWS_REGION"],
|
@@ -72,7 +72,6 @@ module TestaLogger
|
|
72
72
|
@faye_token = options[:faye_token] unless options[:faye_token].nil?
|
73
73
|
@s3_credentials = options[:s3_credentials].deep_symbolize_keys if options[:s3_credentials].present?
|
74
74
|
end
|
75
|
-
|
76
75
|
end
|
77
76
|
end
|
78
77
|
end
|
data/lib/testa_logger/logger.rb
CHANGED
data/lib/testa_logger/version.rb
CHANGED