testa_logger 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/testa_logger/logger.rb +7 -7
- data/lib/testa_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 307ec423100fc91b076c4a0b74f4e21f3bad229f0229d5590f422026bc2559ff
|
4
|
+
data.tar.gz: cfb7daddd00e39662ec98eb0ceb70251b984db573067f8d9ad0b3d050c06d161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '019210822fcf3b11855ea4baeb121d105f4c3f411cd2367b09fe7ce5e7beb48da099a7346cc9f7b910e314534cac5fafc41e051e704ab6e70bac58ed2538da9c'
|
7
|
+
data.tar.gz: de1d807516efb2e4d94934dbe1527ef0cc339599cb6644405b73f44ac8dd3a9a3d63e1cfcec470931bc0d45c495a03ecfc8a922636f54c774957d2bb7e37c0fa
|
data/Gemfile.lock
CHANGED
data/lib/testa_logger/logger.rb
CHANGED
@@ -80,27 +80,27 @@ module TestaLogger
|
|
80
80
|
options.formatter
|
81
81
|
end
|
82
82
|
|
83
|
-
def debug(tag =
|
83
|
+
def debug(tag = nil, *args, &block)
|
84
84
|
add_log_to_queue(DEBUG, tag, args, &block)
|
85
85
|
end
|
86
86
|
|
87
|
-
def info(tag =
|
87
|
+
def info(tag = nil, *args, &block)
|
88
88
|
add_log_to_queue(INFO, tag, args, &block)
|
89
89
|
end
|
90
90
|
|
91
|
-
def warn(tag =
|
91
|
+
def warn(tag = nil, *args, &block)
|
92
92
|
add_log_to_queue(WARN, tag, args, &block)
|
93
93
|
end
|
94
94
|
|
95
|
-
def error(tag =
|
95
|
+
def error(tag = nil, *args, &block)
|
96
96
|
add_log_to_queue(ERROR, tag, args, &block)
|
97
97
|
end
|
98
98
|
|
99
|
-
def fatal(tag =
|
99
|
+
def fatal(tag = nil, *args, &block)
|
100
100
|
add_log_to_queue(FATAL, tag, args, &block)
|
101
101
|
end
|
102
102
|
|
103
|
-
def unknown(tag =
|
103
|
+
def unknown(tag = nil, *args, &block)
|
104
104
|
add_log_to_queue(UNKNOWN, tag, args, &block)
|
105
105
|
end
|
106
106
|
|
@@ -210,7 +210,7 @@ module TestaLogger
|
|
210
210
|
def extract_tag(tag, args)
|
211
211
|
if args.count.zero?
|
212
212
|
# if no additional arguments is given, message is in tag variable
|
213
|
-
args.unshift(tag)
|
213
|
+
args.unshift(tag) unless tag.nil?
|
214
214
|
tag = NO_TAG
|
215
215
|
end
|
216
216
|
tag
|
data/lib/testa_logger/version.rb
CHANGED