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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b1ba4f617a8031ace9b1d47ae6225b62d0d9f6c
4
- data.tar.gz: 5f931301d9305720c1a235e9e4fff2830e6197f2
3
+ metadata.gz: fab912a7620f61ff8ee0c1597e7deb8dcc95e238
4
+ data.tar.gz: 46803b196e2df1b81fb3ad4d8abb3bbdc3fc8131
5
5
  SHA512:
6
- metadata.gz: 217b7e081af83054158df66760d3e6dbed61206b4286012e0b0c25f9c0aaff2e3621b5a1330e55c6cb0eafbecc4ba652fc6ec42548788750982a79836e80f7ab
7
- data.tar.gz: 601a85e1ce33d3844cf531a038c1787d005236d0b2ee510004eeb55e8eaf79198996d1750ef2f1c42f87e20bb8032979460bfebb62066aedf4869f96d5522a82
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
- logger.level = level
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extended-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd