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 +4 -4
- data/README.md +17 -0
- data/lib/sidekiq/logging/json.rb +1 -1
- data/lib/sidekiq/logging/json/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b3caab68471e1bfae178ad4a91791efa5fd4f3e
|
4
|
+
data.tar.gz: 36ec7350e73a2848876b5d857f6ab0323f46c246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
data/lib/sidekiq/logging/json.rb
CHANGED