extended-logger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extended_logger/factory.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab912a7620f61ff8ee0c1597e7deb8dcc95e238
|
4
|
+
data.tar.gz: 46803b196e2df1b81fb3ad4d8abb3bbdc3fc8131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97e39ac6efbad7fdbf1e8d8197875dafc88b3cc940df27df0894a58c01e1b95c6d435f3a7f42be3e7919e219af97ee13d66e02dfe524d36518e567f505dee06
|
7
|
+
data.tar.gz: 74927027cd15ab12144a8d97938c65bd73c6ec9058d13b5d5da6a05d7850bcec15498c9df7dd7ed2c40b38a489a3076db84fe6bb04ca14ba859d79554c6db43c
|
@@ -23,7 +23,8 @@ class ExtendedLogger
|
|
23
23
|
formatter.palette = Formatter.default_palette if colors? logger.io
|
24
24
|
logger.formatter = formatter
|
25
25
|
|
26
|
-
|
26
|
+
level = self.level
|
27
|
+
logger.level = level if level
|
27
28
|
|
28
29
|
logger
|
29
30
|
end
|
@@ -42,10 +43,8 @@ class ExtendedLogger
|
|
42
43
|
|
43
44
|
def level
|
44
45
|
if ENV.key? 'LOG_LEVEL'
|
45
|
-
level , _ = ExtendedLogger.levels.rassoc ENV['LOG_LEVEL']
|
46
|
+
level , _ = ExtendedLogger.levels.rassoc ENV['LOG_LEVEL'].upcase
|
46
47
|
level
|
47
|
-
else
|
48
|
-
0
|
49
48
|
end
|
50
49
|
end
|
51
50
|
end
|