rv-logstasher 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstasher/log_formatter.rb +3 -1
- data/lib/logstasher/version.rb +1 -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: 10724cd9756c33b80e7fda244c674ce229b6edd2
|
4
|
+
data.tar.gz: c768f4a33afcc437d6028174d3302309196205d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c90df87fc2e047ec1e26d192b89b6095ed608c8b5a44565298878bdd4e422e6aac4d981436de12d791c21adae5ab58077f6720e23cbbc9812df467c544da9b68
|
7
|
+
data.tar.gz: f4d9c874c1d070350b1006d1334beb42a3712ced5bb385da95bc3ce978e0ea8df673f709921f9dfcd7404e6f12f2a8218a4afdc55991512d73300a100c2fac82
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
module LogStasher
|
2
4
|
class LogFormatter
|
3
5
|
attr_reader :base_tags
|
@@ -19,7 +21,7 @@ module LogStasher
|
|
19
21
|
|
20
22
|
event.merge!(format(progname)) if progname.is_a?(Exception)
|
21
23
|
event[:tags] = base_tags + Array(event[:tags])
|
22
|
-
event
|
24
|
+
JSON.generate(event) + "\n"
|
23
25
|
end
|
24
26
|
|
25
27
|
def format(data)
|
data/lib/logstasher/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rv-logstasher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Sevcik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: logstash-event
|