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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/block_logger.rb +9 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0252742624c3e3a7cc7532191cfc95e895089ff0
4
- data.tar.gz: 8cdbf399f036a60054e3d8c7252dff493f807381
3
+ metadata.gz: 46892e2a8c8792656b1bacf9020dcf4977c87fb8
4
+ data.tar.gz: 470d54ef15dace681404a5296811a8eb86a64125
5
5
  SHA512:
6
- metadata.gz: 4f1c84e28bdb52ee202e46662004140df1638dd6fd31c2be421565f11b8476e9ae37f87ee7bab0e9b7165a49374342b05c6e5332388d90d70bda29d6befdc816
7
- data.tar.gz: d05df3763bbbde7506daf4f92937a97d1b06ac8917ca4b977dfcb792a9ee21d08216b11860b76f5ec26fe548e976adb235b2572a71dd15cb055343a5923f50d8
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.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.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-26 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging