simple_structured_logger 0.1.2 → 0.1.3

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: 589f9bda3c263ec3e42567e925529318fd71e332
4
- data.tar.gz: d3480fb74a2e6f10009f59208cec5d6db058951e
3
+ metadata.gz: 37a960d5ba5cba7d48661a92378a88278af39dfb
4
+ data.tar.gz: 59d65009423e48bc513e640d859521fcf1e30cbe
5
5
  SHA512:
6
- metadata.gz: 305f9cfe633f42846f5c456558008a8a5faf16e68ea66956070f45f6f6cfa1f02ad9c13421efe41900914f45e3ba40cc37d9361f22f196637541666bb3317fe5
7
- data.tar.gz: c32ac9424086c6cacaa1b2d128edfd07a4eb67d5c917616267faf458a08d652f8070e332f1f5f250c1ebab00317812d36eb4c76d70e197895af676effcbf8171
6
+ metadata.gz: acdafee1c25ef8d234488ea38b10c93f436d4a2e860bff853ed02cc417b2c89ab22a8986e7ee1c1598a1ad1c4a36757d4aa081bd0b41d0370335d0aab334e7dd
7
+ data.tar.gz: 8a9af6c2ce6b84b4e9e1c53ee1d22b710ad9caafa6d38de5c1c8991bdfbd094bfd34869f59e72520aa389ef06fbcecb9ed44fb5dac84223c6c79dcd930b18af7
@@ -39,10 +39,10 @@ module SimpleStructuredLogger
39
39
  class Writer
40
40
  include Singleton
41
41
 
42
- attr_reader :default_tags
42
+ attr_reader :default_tags, :logger
43
43
 
44
44
  def initialize
45
- @l = ::Logger.new(STDOUT)
45
+ @logger = ::Logger.new(STDOUT)
46
46
  @default_tags = {}
47
47
  end
48
48
 
@@ -61,19 +61,19 @@ module SimpleStructuredLogger
61
61
  end
62
62
 
63
63
  def error(msg, opts={})
64
- @l.error("#{msg}: #{stringify_tags(opts)}")
64
+ @logger.error("#{msg}: #{stringify_tags(opts)}")
65
65
  end
66
66
 
67
67
  def info(msg, opts={})
68
- @l.info("#{msg}: #{stringify_tags(opts)}")
68
+ @logger.info("#{msg}: #{stringify_tags(opts)}")
69
69
  end
70
70
 
71
71
  def debug(msg, opts={})
72
- @l.debug("#{msg}: #{stringify_tags(opts)}")
72
+ @logger.debug("#{msg}: #{stringify_tags(opts)}")
73
73
  end
74
74
 
75
75
  def warn(msg, opts={})
76
- @l.warn("#{msg}: #{stringify_tags(opts)}")
76
+ @logger.warn("#{msg}: #{stringify_tags(opts)}")
77
77
  end
78
78
 
79
79
  private
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "simple_structured_logger"
7
- spec.version = '0.1.2'
7
+ spec.version = '0.1.3'
8
8
  spec.authors = ["Michael Bianco"]
9
9
  spec.email = ["mike@cliffsidemedia.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_structured_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bianco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.5.1
89
+ rubygems_version: 2.6.4
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Dead-simple structured logging in ruby with a dead-simple codebase.