datadog-json_logger 0.1.6 → 0.1.7

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: 868149fa27f3bc6c4900011c73346154d535609f63fd8d897b25fca9f22253ce
4
+ data.tar.gz: 1cc23b123383d43bee6ad7e786be0091877f4a663bbf36a9f5947bd258a8f796
5
5
  SHA512:
6
- metadata.gz: 5d7549654631f0ea56c684d81607c49fd3fa0d65e8c60073e511cbc2169d13c89bb29d0d50e9b4aef44ab62213cb859b4b612faa0b23fd2ccedb4a2eaabf29d0
7
- data.tar.gz: d463571ab78f6baf7a44640db5b0df3d4049fa9ddd05f734e74398b2530fdeadda4d6b53498aa82ab79dcbe8b4fdeadcae5d95f47b79a8cf4f12da2cfa1d24f2
6
+ metadata.gz: 82e4528f5fd85701d6bf6527df76548968949df48c677a05d9c6178534159248b99044e6f730a93602886e3f21c001c8c4212f2d0578f9df8cef98e32eaec195
7
+ data.tar.gz: 4ec4aee5f7e99ec413e36c0adbfc3b73ac026571305704b93757744fc6aa25cc708672d6f92693a17ea3bcb24920d4f561ff579f0f3935484ce20e50c30ee375
@@ -9,15 +9,16 @@ 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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Datadog
4
4
  module Loggers
5
- VERSION = "0.1.6"
5
+ VERSION = "0.1.7"
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.7
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