pretty_logger 1.4.2 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pretty_logger/pretty_logger.rb +2 -1
- data/lib/pretty_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: 2c66dfdd4fa72716980440cb9e5b49fedc1148f69ba96be1d1e85151101c5657
|
4
|
+
data.tar.gz: b7009a9f18b4781162ce6f859d6a878ae5748188d84056b7057d964ee03ff0b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ea7a734ec701ed2504e05bb702e1771a7aa7086b8b01529c48075fdf5b94baa0c1a2157176c580b09eba420577d9628d9a2c228b5ed90ec963419d8d21bc14
|
7
|
+
data.tar.gz: 402eee13448b19cc106769fed6b04a9578c7948ef6c4c6b466e52c8891085d0280884ab2c7bf27807a78a2e718f73b2083914df8e113e7bcef716a68a4611d89
|
@@ -31,7 +31,8 @@ module PrettyLogger
|
|
31
31
|
|
32
32
|
def pretty_log(level, *messages)
|
33
33
|
message = messages.compact.map { |m| pretty_message(m) }.join("\n")
|
34
|
-
|
34
|
+
colorcode = level.presence && COLORS[level]
|
35
|
+
instance.send(level || :info, "\e[90m#{timestamp}#{colorcode}[#{level.to_s.upcase}]\e[0m#{message}")
|
35
36
|
end
|
36
37
|
|
37
38
|
def debug(*messages)
|