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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acf6ac7667563d1af6b7bdc0d5885e1fea8b59edf412aff54a8b1c09d3c94406
4
- data.tar.gz: 7030e30e7323f680e1d8ed180c24b485da28ee6fa4560c540df3ddbb14739bb7
3
+ metadata.gz: 39c46bec38bab466b7b18cf0bd59b8a66abb7952cb1121addf07ca3fe66d4c95
4
+ data.tar.gz: 5ad27591ce1471b3e6cc1ce5aa80ebbfc52420f3972ff07db57ffe8d6bc32888
5
5
  SHA512:
6
- metadata.gz: e339844c732ce9f23d20430907fd52c06fa380e83409b0813b5feb6e408af1f6fae5e501b71a99fbde6cb9bea5feafa424afc77e2e7194fa395f52cae36c22ac
7
- data.tar.gz: 33d2d5db96d7e6774078b3fa537ba9b1e95d312f3bc6ed6fe7b0dddfe785290d27bac95320e380365b8227edbb2e503b97bf347cce00915ccc4866a8ffeccb59
6
+ metadata.gz: 20be22950140beca8fb07cdc35bd42db687ce8c8f9eab605d4bab71845900332e649f94d9adfbac6b828d877ac1c60a2d22ac4c1b03c28487fee71c4252d1290
7
+ data.tar.gz: 88323a05ead873885ffc5e7a49c59735b190a8530423a7feee9a74411b1367763efc4ba09ef803f6a7f8c2afb561015c17a0371d062e748030e95f27d6a361f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testa_logger (0.1.7)
4
+ testa_logger (0.1.10)
5
5
  activesupport
6
6
  awesome_print
7
7
  aws-sdk-s3
@@ -9,7 +9,7 @@ module TestaLogger
9
9
  attr_accessor :level, :tag_length
10
10
 
11
11
  # @return [Proc]
12
- attr_accessor :default_formatter
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
- @default_formatter = proc do |severity, datetime, _, msg|
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["WEB_SOCKET_URL"]
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
@@ -220,8 +220,8 @@ module TestaLogger
220
220
  def extract_tag(tag, args)
221
221
  if args.count.zero?
222
222
  # if no additional arguments is given, message is in tag variable
223
- tag = NO_TAG
224
223
  args.unshift(tag)
224
+ tag = NO_TAG
225
225
  end
226
226
  tag
227
227
  end
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic