extended_logger 0.2.3 → 0.2.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 +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9801ab1193feb987453c6f64c70240f9c634b2
|
4
|
+
data.tar.gz: 04fe0f1a914a80e25bf42591fe93089dbeee0bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cda9e4fd782929e3bf9792a8ddd720419204d34f815ad799c922af23e969ac85492b5291bdb3d7a12a9cc540d43d916e98609d729dff866ff922a35ee6223760
|
7
|
+
data.tar.gz: 4370a4e3c0dc7b4da89fe1a8bdd61f2ff40c4af6356540a84646c342c82ff54e02678d7f8da87eba041435e25ef6da3b2df0c168af2ee20ebff611c75d8bdc99
|
@@ -50,10 +50,16 @@ class ExtendedLogger
|
|
50
50
|
def level
|
51
51
|
level = ENV['LOG_LEVEL'] || @level
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
return unless level
|
54
|
+
|
55
|
+
begin
|
56
|
+
relative_level = Integer(level)
|
57
|
+
return relative_level
|
58
|
+
rescue ArgumentError
|
56
59
|
end
|
60
|
+
|
61
|
+
level , _ = ExtendedLogger.levels.rassoc level.upcase
|
62
|
+
level
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extended_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
extended-logger provides a richer logger implementation than the built in ruby
|