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 +4 -4
- data/lib/datadog/json_logger.rb +8 -3
- data/lib/datadog/loggers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9a3bd99fbe42f4f151f466f1d4881ac2e402a56998a0b6a2b1b0bd543a79102
|
4
|
+
data.tar.gz: 4987ddc088b69f67eead916c24200b0fc9370a7153a17acc9a2108748b6c87ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d63a90d6b53893695969dcf752823146d45f5c50e1b420b9d18bdb24150c58022dc531e9d615e35796a53f94debcd0b5ecad3862c64e4a3d3c359cc92fc6f08e
|
7
|
+
data.tar.gz: 75216849fe27f732e4a00bd60e46cda2871df68bb2dd86c4c509a9cadae74f26c93bb1ac0a3adfdf3fc4eeaaedd664afd7147e08481eafd3263a5bd2550079bf
|
data/lib/datadog/json_logger.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ddtrace
|