block_logger 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/block_logger.rb +9 -1
- 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: 46892e2a8c8792656b1bacf9020dcf4977c87fb8
|
4
|
+
data.tar.gz: 470d54ef15dace681404a5296811a8eb86a64125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f829d16f3a758547bc92d329e2e5198d00e1cfab75aeedabf584ba50c360d000683bbe595dac70307a592935bf8de0ef19e57a8e7c8839c9f9e97d36229cf3d3
|
7
|
+
data.tar.gz: e09ccce7c5affa7dc7f2cb7690e61667c2d0b578ba2d30a81134471ef76aaa598be25eecfc7e555a87771e0379a13baaa08bc5c20702e6d4b10399fba2419def
|
data/lib/block_logger.rb
CHANGED
@@ -2,7 +2,7 @@ require 'logging'
|
|
2
2
|
|
3
3
|
class BlockLogger
|
4
4
|
|
5
|
-
VERSION = '0.1.
|
5
|
+
VERSION = '0.1.2'
|
6
6
|
|
7
7
|
DEFAULT_LOG_LEVEL = :info
|
8
8
|
DEFAULT_LOG_PATTERN = "%.1l, [%d] %5l -- %c: %m\n".freeze
|
@@ -47,6 +47,14 @@ class BlockLogger
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
def level
|
51
|
+
@logger.level
|
52
|
+
end
|
53
|
+
|
54
|
+
def level=(l)
|
55
|
+
@logger.level = l
|
56
|
+
end
|
57
|
+
|
50
58
|
def fatal(msg, **kwargs)
|
51
59
|
@logger.fatal "#{msg}#{serialize_kwargs(kwargs)}"
|
52
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: block_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Xie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|