logsformyfamily 0.2.3 → 0.3.0

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: d8b5641944abec8e8711284b5cda8cbd431748b47f550c9d6d008f1314569d38
4
- data.tar.gz: 478522bbe10a8ecc241ed0859fa5981de61b3771132bffc0aa8798b9f2016d09
3
+ metadata.gz: 95868f1ec31e17276824034aa1221c678f1c2a3d2c5cbec5306dbbb044490b7f
4
+ data.tar.gz: c245935195974db8b8ee5fcaa229f2dd8255b9bc92b653f0cbcc2273319bdf25
5
5
  SHA512:
6
- metadata.gz: 8425fadbcd43418eeb54a176b146812bc9a259896a7f769e9365a1bd7737b8e73a56433e8b74bbd7d4b3ddf665c6570dcb380214d67e07fa3e1a5cbbbe3842b7
7
- data.tar.gz: 651cc91a6385f295794946cb77add0bc9b4aba64b8bb7e0562f18539a42e9e50e636906d41b01e30fe5b61113724cf569329fdd43717679bde9cdce57f70390c
6
+ metadata.gz: 36fb44a112f25679139a570b07bf07736a3408d53d20d06a014529caa51b77cdae9ee6da6c70176fd0430bd25e68bd952ba6b72a69ea2930722a03c7c8b64ce8
7
+ data.tar.gz: 00c91549ebd6edbd6d8442335d72f25910990431ffc222b5c16d0bc8c8c2a998a43bd530b9b635912876d960b3cb13eccba9862ea288d8c97039bd1345b95014
@@ -22,9 +22,9 @@ module LogsForMyFamily
22
22
  @backends = LogsForMyFamily.configuration.backends
23
23
  @configuration = LogsForMyFamily.configuration.to_h
24
24
  @request_id = LogsForMyFamily.configuration.request_id
25
+ filter_level(LogsForMyFamily.configuration.level)
25
26
  @request_config = {}
26
27
  @event_id = 0
27
- @filter_level = 0
28
28
  @filter_percent = 1.0
29
29
  @filter_percent_on = nil
30
30
  @filter_percent_below_level = 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LogsForMyFamily
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.0'
5
5
  end
@@ -31,7 +31,7 @@ module LogsForMyFamily
31
31
  end
32
32
 
33
33
  class Configuration
34
- attr_accessor :version, :hostname, :app_name, :backends, :request_id
34
+ attr_accessor :version, :hostname, :app_name, :backends, :request_id, :level
35
35
 
36
36
  def initialize
37
37
  @version =
@@ -44,6 +44,7 @@ module LogsForMyFamily
44
44
  @app_name = ENV['NEWRELIC_APP']
45
45
  @backends = []
46
46
  @request_id = proc { |env| env['core_app.request_id'] }
47
+ @level = :debug
47
48
  end
48
49
 
49
50
  def to_h
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logsformyfamily
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Wilson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem-release