telemetry-logger 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/telemetry/logger.rb +1 -1
- data/lib/telemetry/logger/methods.rb +8 -6
- data/lib/telemetry/logger/version.rb +1 -1
- data/telemetry-logger.gemspec +0 -3
- metadata +3 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650aaafabdc5a72622435581d70848ae723e45d82e9d34d8315e91db845842af
|
4
|
+
data.tar.gz: 7c9fc8c2364f206204b29b8e0e520ffb67f60a72066e0d750cba0ba55e0b466e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 334ad853722b7c2477ff457d9b00524de9d83b6d0e5df7f322e9c0681b5aab2ff43ce999b668feb943f35464bd8250ec883e166f609cabea2222a30446d72283
|
7
|
+
data.tar.gz: 3425c27ced9ab4b2e812c1ffed3c1671c10e3a9974e0242be44500f869257da3d5ca79acab5fab79020194f25dcda0411b4f279fcd12fb368488680dc5b559eb
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
# Telemetry::Logger
|
2
2
|
|
3
|
+
## v0.1.1
|
4
|
+
* Fixing issue with color option using the wrong method name
|
5
|
+
* Removing format logger from the setup command
|
6
|
+
* Changing setup method to return `self`
|
7
|
+
* Removing `concurrent-ruby` and `oj` as a dependency
|
8
|
+
|
3
9
|
## v0.1.0
|
4
10
|
Initial release
|
data/lib/telemetry/logger.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rainbow'
|
2
|
+
|
1
3
|
module Telemetry
|
2
4
|
module Logger
|
3
5
|
module Methods
|
@@ -15,7 +17,7 @@ module Telemetry
|
|
15
17
|
return unless log.level < 1
|
16
18
|
|
17
19
|
message = yield if message.nil? && block_given?
|
18
|
-
message = Rainbow(message).blue if
|
20
|
+
message = Rainbow(message).blue if colorize
|
19
21
|
log.debug(message)
|
20
22
|
end
|
21
23
|
|
@@ -23,7 +25,7 @@ module Telemetry
|
|
23
25
|
return unless log.level < 2
|
24
26
|
|
25
27
|
message = yield if message.nil? && block_given?
|
26
|
-
message = Rainbow(message).green if
|
28
|
+
message = Rainbow(message).green if colorize
|
27
29
|
log.info(message)
|
28
30
|
end
|
29
31
|
|
@@ -31,7 +33,7 @@ module Telemetry
|
|
31
33
|
return unless log.level < 3
|
32
34
|
|
33
35
|
message = yield if message.nil? && block_given?
|
34
|
-
message = Rainbow(message).yellow if
|
36
|
+
message = Rainbow(message).yellow if colorize
|
35
37
|
log.warn(message)
|
36
38
|
end
|
37
39
|
|
@@ -39,7 +41,7 @@ module Telemetry
|
|
39
41
|
return unless log.level < 4
|
40
42
|
|
41
43
|
message = yield if message.nil? && block_given?
|
42
|
-
message = Rainbow(message).red if
|
44
|
+
message = Rainbow(message).red if colorize
|
43
45
|
log.error(message)
|
44
46
|
end
|
45
47
|
|
@@ -47,13 +49,13 @@ module Telemetry
|
|
47
49
|
return unless log.level < 5
|
48
50
|
|
49
51
|
message = yield if message.nil? && block_given?
|
50
|
-
message = Rainbow(message).darkred if
|
52
|
+
message = Rainbow(message).darkred if colorize
|
51
53
|
log.fatal(message)
|
52
54
|
end
|
53
55
|
|
54
56
|
def unknown(message = nil)
|
55
57
|
message = yield if message.nil? && block_given?
|
56
|
-
message = Rainbow(message).purple if
|
58
|
+
message = Rainbow(message).purple if colorize
|
57
59
|
log.unknown(message)
|
58
60
|
end
|
59
61
|
|
data/telemetry-logger.gemspec
CHANGED
@@ -24,9 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
end
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_dependency 'concurrent-ruby', '>= 1.1.7'
|
28
|
-
spec.add_dependency 'concurrent-ruby-ext', '>= 1.1.7'
|
29
27
|
spec.add_dependency 'multi_json'
|
30
|
-
spec.add_dependency 'oj', '>= 3.11'
|
31
28
|
spec.add_dependency 'rainbow', '~> 3'
|
32
29
|
end
|
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telemetry-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: concurrent-ruby
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.7
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1.7
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: concurrent-ruby-ext
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.7
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1.7
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: multi_json
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +24,6 @@ dependencies:
|
|
52
24
|
- - ">="
|
53
25
|
- !ruby/object:Gem::Version
|
54
26
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: oj
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.11'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.11'
|
69
27
|
- !ruby/object:Gem::Dependency
|
70
28
|
name: rainbow
|
71
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
89
|
- !ruby/object:Gem::Version
|
132
90
|
version: '0'
|
133
91
|
requirements: []
|
134
|
-
rubygems_version: 3.
|
92
|
+
rubygems_version: 3.2.15
|
135
93
|
signing_key:
|
136
94
|
specification_version: 4
|
137
95
|
summary: Telemetry Logging Gem
|