appsignal 3.3.9-java → 3.3.10-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/appsignal/logger.rb +8 -43
- data/lib/appsignal/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: 3647990ee72e0eb2b33b6f57d0615a8a17abf3026d0b16c0837abc2c31ae4eb6
|
4
|
+
data.tar.gz: 6ba55a31bc34628318fe11965d60a45b5c5c7341b1a5c6f32fa43a672c4c58e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f10177227982ac430a2e5d4e80a76601a60705d781b80c1be8406f6e6ef52ab2e30eecec466e99b39690b20b52a76331969769a4620abfcd134134e0557dd1
|
7
|
+
data.tar.gz: fe25c533a5059981d22985bfa46ad8df4be7fbb2e25abde329b6cdba38feb8f7cf2099915db14a86cacc8461b8ce2e070492360d4f4ac89e60bd3f1b7bb817ce
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 3.3.10
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- [48389475](https://github.com/appsignal/appsignal-ruby/commit/48389475f7739f5688e0251902227404e5f93b96) patch - The `Appsignal::Logger` is now compatible with `ActiveSupport::Logger.broadcast`.
|
8
|
+
|
3
9
|
## 3.3.9
|
4
10
|
|
5
11
|
### Fixed
|
data/lib/appsignal/logger.rb
CHANGED
@@ -5,7 +5,7 @@ require "set"
|
|
5
5
|
|
6
6
|
module Appsignal
|
7
7
|
# Logger that flushes logs to the AppSignal logging service
|
8
|
-
class Logger < ::Logger
|
8
|
+
class Logger < ::Logger
|
9
9
|
PLAINTEXT = 0
|
10
10
|
LOGFMT = 1
|
11
11
|
JSON = 2
|
@@ -32,7 +32,7 @@ module Appsignal
|
|
32
32
|
# We support the various methods in the Ruby
|
33
33
|
# logger class by supplying this method.
|
34
34
|
# @api private
|
35
|
-
def add(severity, message = nil, group = nil)
|
35
|
+
def add(severity, message = nil, group = nil, attributes = {})
|
36
36
|
severity ||= UNKNOWN
|
37
37
|
return true if severity < level
|
38
38
|
group = @group if group.nil?
|
@@ -52,7 +52,7 @@ module Appsignal
|
|
52
52
|
SEVERITY_MAP.fetch(severity, 0),
|
53
53
|
@format,
|
54
54
|
message,
|
55
|
-
Appsignal::Utils::Data.generate(
|
55
|
+
Appsignal::Utils::Data.generate(attributes)
|
56
56
|
)
|
57
57
|
end
|
58
58
|
alias log add
|
@@ -65,14 +65,7 @@ module Appsignal
|
|
65
65
|
return if DEBUG < level
|
66
66
|
message = yield if message.nil? && block_given?
|
67
67
|
return if message.nil?
|
68
|
-
|
69
|
-
Appsignal::Extension.log(
|
70
|
-
@group,
|
71
|
-
2,
|
72
|
-
@format,
|
73
|
-
message,
|
74
|
-
Appsignal::Utils::Data.generate(attributes)
|
75
|
-
)
|
68
|
+
add(DEBUG, message, @group, attributes)
|
76
69
|
end
|
77
70
|
|
78
71
|
# Log an info level message
|
@@ -83,14 +76,7 @@ module Appsignal
|
|
83
76
|
return if INFO < level
|
84
77
|
message = yield if message.nil? && block_given?
|
85
78
|
return if message.nil?
|
86
|
-
|
87
|
-
Appsignal::Extension.log(
|
88
|
-
@group,
|
89
|
-
3,
|
90
|
-
@format,
|
91
|
-
message,
|
92
|
-
Appsignal::Utils::Data.generate(attributes)
|
93
|
-
)
|
79
|
+
add(INFO, message, @group, attributes)
|
94
80
|
end
|
95
81
|
|
96
82
|
# Log a warn level message
|
@@ -101,14 +87,7 @@ module Appsignal
|
|
101
87
|
return if WARN < level
|
102
88
|
message = yield if message.nil? && block_given?
|
103
89
|
return if message.nil?
|
104
|
-
|
105
|
-
Appsignal::Extension.log(
|
106
|
-
@group,
|
107
|
-
5,
|
108
|
-
@format,
|
109
|
-
message,
|
110
|
-
Appsignal::Utils::Data.generate(attributes)
|
111
|
-
)
|
90
|
+
add(WARN, message, @group, attributes)
|
112
91
|
end
|
113
92
|
|
114
93
|
# Log an error level message
|
@@ -119,14 +98,7 @@ module Appsignal
|
|
119
98
|
return if ERROR < level
|
120
99
|
message = yield if message.nil? && block_given?
|
121
100
|
return if message.nil?
|
122
|
-
|
123
|
-
Appsignal::Extension.log(
|
124
|
-
@group,
|
125
|
-
6,
|
126
|
-
@format,
|
127
|
-
message,
|
128
|
-
Appsignal::Utils::Data.generate(attributes)
|
129
|
-
)
|
101
|
+
add(ERROR, message, @group, attributes)
|
130
102
|
end
|
131
103
|
|
132
104
|
# Log a fatal level message
|
@@ -137,14 +109,7 @@ module Appsignal
|
|
137
109
|
return if FATAL < level
|
138
110
|
message = yield if message.nil? && block_given?
|
139
111
|
return if message.nil?
|
140
|
-
|
141
|
-
Appsignal::Extension.log(
|
142
|
-
@group,
|
143
|
-
7,
|
144
|
-
@format,
|
145
|
-
message,
|
146
|
-
Appsignal::Utils::Data.generate(attributes)
|
147
|
-
)
|
112
|
+
add(FATAL, message, @group, attributes)
|
148
113
|
end
|
149
114
|
end
|
150
115
|
end
|
data/lib/appsignal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.10
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-03
|
13
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|