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 +4 -4
- data/lib/datadog/json_logger.rb +4 -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: 868149fa27f3bc6c4900011c73346154d535609f63fd8d897b25fca9f22253ce
|
4
|
+
data.tar.gz: 1cc23b123383d43bee6ad7e786be0091877f4a663bbf36a9f5947bd258a8f796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e4528f5fd85701d6bf6527df76548968949df48c677a05d9c6178534159248b99044e6f730a93602886e3f21c001c8c4212f2d0578f9df8cef98e32eaec195
|
7
|
+
data.tar.gz: 4ec4aee5f7e99ec413e36c0adbfc3b73ac026571305704b93757744fc6aa25cc708672d6f92693a17ea3bcb24920d4f561ff579f0f3935484ce20e50c30ee375
|
data/lib/datadog/json_logger.rb
CHANGED
@@ -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
|
|
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.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-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ddtrace
|