ougai 1.8.3 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +8 -8
- data/README.md +3 -3
- data/lib/ougai/formatters/readable.rb +3 -3
- data/lib/ougai/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c643ddcb52adf99b04aab5cf16769972830cd78a9e87d207250003973fe325
|
4
|
+
data.tar.gz: 236fbab7990450d79884b49a6049b31849c7be0353989059eba6b94a8370d99a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad433cd5d99ff87e399b94b68fca6030a3852eef8e9327fe6dbb1504a1ced40e0199d627c2cf9d6aeb83f559dd9d7e7eb0c019cd498350961240808a6fc83dc6
|
7
|
+
data.tar.gz: 0a3912cbc49d9d19b13a8d90137d58566d35d7845a82782ca738d550f1b04f2fe0ec510cc3e1da16e78eb4a84740292256e33516f04084e5b5bec4ad5a543a0d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ougai (1.8.
|
4
|
+
ougai (1.8.4)
|
5
5
|
oj (~> 3.10)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
10
|
+
amazing_print (1.0.0)
|
11
11
|
diff-lcs (1.3)
|
12
12
|
docile (1.3.2)
|
13
|
-
json (2.
|
14
|
-
json (2.
|
15
|
-
oj (3.10.
|
13
|
+
json (2.3.0)
|
14
|
+
json (2.3.0-java)
|
15
|
+
oj (3.10.6)
|
16
16
|
rake (13.0.1)
|
17
17
|
rspec (3.9.0)
|
18
18
|
rspec-core (~> 3.9.0)
|
@@ -27,20 +27,20 @@ GEM
|
|
27
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
28
28
|
rspec-support (~> 3.9.0)
|
29
29
|
rspec-support (3.9.2)
|
30
|
-
simplecov (0.17.
|
30
|
+
simplecov (0.17.1)
|
31
31
|
docile (~> 1.1)
|
32
32
|
json (>= 1.8, < 3)
|
33
33
|
simplecov-html (~> 0.10.0)
|
34
34
|
simplecov-html (0.10.2)
|
35
35
|
timecop (0.9.1)
|
36
|
-
yard (0.9.
|
36
|
+
yard (0.9.24)
|
37
37
|
|
38
38
|
PLATFORMS
|
39
39
|
java
|
40
40
|
ruby
|
41
41
|
|
42
42
|
DEPENDENCIES
|
43
|
-
|
43
|
+
amazing_print
|
44
44
|
bundler (>= 2.1.4)
|
45
45
|
ougai!
|
46
46
|
rake (>= 13.0.1)
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Ougai
|
|
9
9
|
|
10
10
|
A structured logging system is capable of handling a message, structured data or an exception easily.
|
11
11
|
It has JSON formatters compatible with [Bunyan](https://github.com/trentm/node-bunyan) or [pino](https://github.com/pinojs/pino) for Node.js and
|
12
|
-
human readable formatter with [
|
12
|
+
human readable formatter with [Amazing Print](https://github.com/amazing-print/amazing_print) for console.
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
@@ -335,10 +335,10 @@ If you use *Ougai::Formatters::Pino*, you can use command [pino](https://github.
|
|
335
335
|
|
336
336
|
## Use human Readable formatter for console
|
337
337
|
|
338
|
-
Add
|
338
|
+
Add amazing_print to Gemfile and `bundle`
|
339
339
|
|
340
340
|
```ruby
|
341
|
-
gem '
|
341
|
+
gem 'amazing_print'
|
342
342
|
```
|
343
343
|
|
344
344
|
Set *Ougai::Formatters::Readable* instance to `formatter` accessor
|
@@ -4,7 +4,7 @@ require 'ougai/formatters/base'
|
|
4
4
|
|
5
5
|
module Ougai
|
6
6
|
module Formatters
|
7
|
-
# A human readble formatter with
|
7
|
+
# A human readble formatter with amazing_print
|
8
8
|
# @attr [Boolean] plain Whether log should be plain not colorized.
|
9
9
|
# @attr [Array<String, Symbol>] excluded_fields The fields excluded from all logs
|
10
10
|
class Readable < Base
|
@@ -87,9 +87,9 @@ module Ougai
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def load_dependent
|
90
|
-
require '
|
90
|
+
require 'amazing_print'
|
91
91
|
rescue LoadError
|
92
|
-
puts 'You must install the
|
92
|
+
puts 'You must install the amazing_print gem to use this output.'
|
93
93
|
raise
|
94
94
|
end
|
95
95
|
end
|
data/lib/ougai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ougai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimitsu Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
version: 3.9.0
|
69
69
|
description: |2
|
70
70
|
A structured logging system is capable of handling a message, custom data or an exception easily.
|
71
|
-
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with
|
71
|
+
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with Amazing Print for console.
|
72
72
|
email:
|
73
73
|
- toshi@tilfin.com
|
74
74
|
executables: []
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.0.
|
124
|
+
rubygems_version: 3.0.2
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: JSON logger compatible with node-bunyan or pino is capable of handling structured
|