sidekiq-logging-json 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc9b1930649549a4d84514f6c00e608b7cb9955b
4
- data.tar.gz: f05ea0ec054aa1f083b42cc32b3fda446db1b63e
3
+ metadata.gz: 7b3caab68471e1bfae178ad4a91791efa5fd4f3e
4
+ data.tar.gz: 36ec7350e73a2848876b5d857f6ab0323f46c246
5
5
  SHA512:
6
- metadata.gz: f136cdbf07b220d7684a4c3950937a0a8324ec3cae569df404bed9c09ef80d73984c230b01b0bf6c7faae3d0841b9077fa86479c914dcab8669ee89670505cc7
7
- data.tar.gz: 7ff1aa34324ef09722def61c81f89ed59b2802c67b1705ba2c208635a32e7f4bd2b80323aca3cdd62da525847274ec60f8b1d35a0c17937aa719840e3525e17d
6
+ metadata.gz: 0f216b6e67cb793245f38fecd22e87cbef6046b16e1d63d61d17bbf2723a03210f09d900c94957e085b0a56b4353102e658ce9364837296e3f8f293cf0fba578
7
+ data.tar.gz: 3a994e351548b1c52458bd38c22138f4b5c1f4231315958ffa4aa7a8543a052986ca3c38c1adef14738f41c485d4fe3306ddb65f414e7c2d73be9814e38d146e
data/README.md CHANGED
@@ -7,6 +7,23 @@ consists of JSON documents. To make it possible to make fine grained
7
7
  queries on [Sidekiq](http://sidekiq.org/) logs, we needed logging in
8
8
  JSON format. This gem contains that logger.
9
9
 
10
+ ### Example log entry:
11
+
12
+ ```json
13
+ {
14
+ "@timestamp": "2014-06-05T12:38:42Z",
15
+ "pid": 8630,
16
+ "tid": "TID-osammcf2k",
17
+ "context": "TrainingIndexer::Work JID-177066e96052c2314dcad8c7",
18
+ "severity": "INFO",
19
+ "program_name": "TrainingIndexer::Work",
20
+ "type": "sidekiq",
21
+ "message": "2014-06-05T12:38:42Z 8630 TID-osammcf2k TrainingIndexer::Work JID-177066e96052c2314dcad8c7 INFO: done: 51.579 sec",
22
+ "status": "done",
23
+ "run_time": 51.579
24
+ }
25
+ ```
26
+
10
27
  ## Installation
11
28
 
12
29
  Add this line to your application's Gemfile:
@@ -18,7 +18,7 @@ module Sidekiq
18
18
  :type => 'sidekiq',
19
19
  :status => nil,
20
20
  :run_time => nil
21
- }.merge(processed_message(message)).to_json
21
+ }.merge(process_message(message)).to_json
22
22
  end
23
23
 
24
24
  def process_message(message)
@@ -1,7 +1,7 @@
1
1
  module Sidekiq
2
2
  module Logging
3
3
  module Json
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-logging-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter de Vos