logstop 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/logstop/formatter.rb +10 -0
- data/lib/logstop/version.rb +1 -1
- data/logstop.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd3468821cf2db0f736994a67beb26daa32b9bb4ccc8051efac0bbd21b5ff5dc
|
4
|
+
data.tar.gz: f15cc9e3cf9ff371dc28dccc69201d2e4bfdad9f6e36d0d3d4375a7f505eda75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91dc7ecf3ca0ec7f8b650cff86aafde56ef7102f3fea1b148343e7a1db3802685193f8f7e6cf2f9cb37070d95107f15c908db7b3191b5ca74edd6dfad125ba34
|
7
|
+
data.tar.gz: 0a4726cece72b09e6023e1605e0d3aaf5296795086bf4d511e0ceb25f380fa2f98b0b8d77cb4f5ff03ff900bb4b0ed2a08a1fbbbad9d4e94bf82809ec9e170c2
|
data/CHANGELOG.md
CHANGED
data/lib/logstop/formatter.rb
CHANGED
@@ -10,5 +10,15 @@ module Logstop
|
|
10
10
|
def call(severity, timestamp, progname, msg)
|
11
11
|
Logstop.scrub(@formatter.call(severity, timestamp, progname, msg), ip: @ip)
|
12
12
|
end
|
13
|
+
|
14
|
+
# for tagged logging
|
15
|
+
def method_missing(method_name, *arguments, &block)
|
16
|
+
@formatter.send(method_name, *arguments, &block)
|
17
|
+
end
|
18
|
+
|
19
|
+
# for tagged logging
|
20
|
+
def respond_to?(method_name, include_private = false)
|
21
|
+
@formatter.send(:respond_to?, method_name, include_private) || super
|
22
|
+
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/logstop/version.rb
CHANGED
data/logstop.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
+
spec.add_development_dependency "activesupport"
|
23
24
|
spec.add_development_dependency "benchmark-ips"
|
24
25
|
spec.add_development_dependency "bundler"
|
25
26
|
spec.add_development_dependency "minitest"
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: benchmark-ips
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|