loggerstash 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/loggerstash.rb +5 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ea3f2fdbe4dfa4604759d473ef117f7c1c1961b3c484be9b7deb1c2ed53dc74
4
- data.tar.gz: ca16b574bdd0adfef725a7eb8a3821a541ba8f74bc7f88be0185888daf125ec3
3
+ metadata.gz: 9dbd74e8a0096228149fda7e10855c331375e7d69487f4c1a20fad962513caa1
4
+ data.tar.gz: 993cf25a2d56b661a9ccea0f4329e816867c9bc4b3304a3190cf6ab9a9d7618f
5
5
  SHA512:
6
- metadata.gz: bea707a8f38924bfac3b4c61d61fff5eff9d534c4beaa08024cc70865a79968a5f9a75399e9a4f7a06a9cc93351c539c7077ef4c7a11e0764adb6d0235107f56
7
- data.tar.gz: 64d870fac502e29a4dc811ae0d4e83268a80e238642021b6294a2029b5b914b7b09a9595bb7347ce69c3d8312f3198aa590956cc0e5d009bbcef8deec7870cd8
6
+ metadata.gz: e6be6da3241b42f1c72f8192c3c251990b3d10b2164662b05cedde8707b32db02d8a68d06baf974417f7d62341d6c5781e935eced286057593e82873af0e2e40
7
+ data.tar.gz: e7370536f16a2cd3fcab3df0804f97c4d466a1e9dc869c2053fd03ead426651844bdc735572dc4e88967bf9e9bba6991494b5a1754a26d91f60b1813de406264
@@ -136,9 +136,11 @@ class Loggerstash
136
136
  def default_formatter
137
137
  @default_formatter ||= ->(s, t, p, m) do
138
138
  {
139
- "@timestamp" => t.utc.strftime("%FT%T.%NZ"),
140
- message: m,
141
- severity: s.downcase,
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash_writer