loggerstash 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/loggerstash.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dbd74e8a0096228149fda7e10855c331375e7d69487f4c1a20fad962513caa1
|
4
|
+
data.tar.gz: 993cf25a2d56b661a9ccea0f4329e816867c9bc4b3304a3190cf6ab9a9d7618f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6be6da3241b42f1c72f8192c3c251990b3d10b2164662b05cedde8707b32db02d8a68d06baf974417f7d62341d6c5781e935eced286057593e82873af0e2e40
|
7
|
+
data.tar.gz: e7370536f16a2cd3fcab3df0804f97c4d466a1e9dc869c2053fd03ead426651844bdc735572dc4e88967bf9e9bba6991494b5a1754a26d91f60b1813de406264
|
data/lib/loggerstash.rb
CHANGED
@@ -136,9 +136,11 @@ class Loggerstash
|
|
136
136
|
def default_formatter
|
137
137
|
@default_formatter ||= ->(s, t, p, m) do
|
138
138
|
{
|
139
|
-
"@timestamp"
|
140
|
-
message:
|
141
|
-
|
139
|
+
"@timestamp": t.utc.strftime("%FT%T.%NZ"),
|
140
|
+
message: m,
|
141
|
+
severity_name: s.downcase,
|
142
|
+
hostname: Socket.gethostname,
|
143
|
+
pid: $$,
|
142
144
|
}.tap do |ev|
|
143
145
|
ev[:progname] = p if p
|
144
146
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loggerstash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash_writer
|