datadog-json_logger 0.1.6 → 0.1.8

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: 7120de0085ceee8323c41cc80a7743e111818bb30662d9dbd7f1be4c4feb4a6c
4
- data.tar.gz: 4fa8c5501f35a9794ec44763ac4a7f41ae2cc80b0f72c1326497f0bdaabcafe9
3
+ metadata.gz: d9a3bd99fbe42f4f151f466f1d4881ac2e402a56998a0b6a2b1b0bd543a79102
4
+ data.tar.gz: 4987ddc088b69f67eead916c24200b0fc9370a7153a17acc9a2108748b6c87ae
5
5
  SHA512:
6
- metadata.gz: 5d7549654631f0ea56c684d81607c49fd3fa0d65e8c60073e511cbc2169d13c89bb29d0d50e9b4aef44ab62213cb859b4b612faa0b23fd2ccedb4a2eaabf29d0
7
- data.tar.gz: d463571ab78f6baf7a44640db5b0df3d4049fa9ddd05f734e74398b2530fdeadda4d6b53498aa82ab79dcbe8b4fdeadcae5d95f47b79a8cf4f12da2cfa1d24f2
6
+ metadata.gz: d63a90d6b53893695969dcf752823146d45f5c50e1b420b9d18bdb24150c58022dc531e9d615e35796a53f94debcd0b5ecad3862c64e4a3d3c359cc92fc6f08e
7
+ data.tar.gz: 75216849fe27f732e4a00bd60e46cda2871df68bb2dd86c4c509a9cadae74f26c93bb1ac0a3adfdf3fc4eeaaedd664afd7147e08481eafd3263a5bd2550079bf
@@ -9,18 +9,23 @@ module Datadog
9
9
  class Error < StandardError; end
10
10
 
11
11
  class JSONLogger < Logger
12
- attr_accessor :config
13
-
14
12
  def initialize(output = default_output)
15
13
  super
16
14
  @default_formatter = ::Datadog::Loggers::JSONFormatter
17
15
  end
18
16
 
17
+ def self.config
18
+ @config ||= Configuration.new
19
+ end
20
+
19
21
  def self.configure
20
- self.config ||= Configuration.new
21
22
  yield(config)
22
23
  end
23
24
 
25
+ def config
26
+ self.class.config
27
+ end
28
+
24
29
  private
25
30
 
26
31
  def default_output
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Datadog
4
4
  module Loggers
5
- VERSION = "0.1.6"
5
+ VERSION = "0.1.8"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-json_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eth3rnit3
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ddtrace