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 +4 -4
- data/lib/simple_structured_logger.rb +6 -6
- data/simple_structured_logger.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37a960d5ba5cba7d48661a92378a88278af39dfb
|
4
|
+
data.tar.gz: 59d65009423e48bc513e640d859521fcf1e30cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
|
-
@
|
64
|
+
@logger.error("#{msg}: #{stringify_tags(opts)}")
|
65
65
|
end
|
66
66
|
|
67
67
|
def info(msg, opts={})
|
68
|
-
@
|
68
|
+
@logger.info("#{msg}: #{stringify_tags(opts)}")
|
69
69
|
end
|
70
70
|
|
71
71
|
def debug(msg, opts={})
|
72
|
-
@
|
72
|
+
@logger.debug("#{msg}: #{stringify_tags(opts)}")
|
73
73
|
end
|
74
74
|
|
75
75
|
def warn(msg, opts={})
|
76
|
-
@
|
76
|
+
@logger.warn("#{msg}: #{stringify_tags(opts)}")
|
77
77
|
end
|
78
78
|
|
79
79
|
private
|
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.
|
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-
|
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.
|
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.
|