ougai 1.8.2 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +26 -26
- data/LICENSE.txt +1 -1
- data/README.md +4 -4
- data/lib/ougai/formatters/readable.rb +3 -3
- data/lib/ougai/logger.rb +2 -2
- data/lib/ougai/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04627a9810f76be4d299992b3a2eca66eb66d7d168083962ee3b4a554546d50
|
4
|
+
data.tar.gz: '089ed84f7e5c8aabd201a82a914dfb0d7d8182b88a3646bb2143060d212544b9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfab00111705a26b41ccdbb2888c556902a9b1acda511d191b57ed675a2a835b13b13b79cfff4fe439fefd446f2fa00da93884a36ced0cba8a2e52c3d4e1169d
|
7
|
+
data.tar.gz: 07edc5901a52a5764b98cb8fdbf504913d0b63a32b6d8d631b0cc73cd079f8ff1e492f0fd98e4d177e9e4fae8656bf46d0476abc167515240176bef8e7df2023
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,53 +1,53 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ougai (1.8.
|
5
|
-
oj (~> 3.
|
4
|
+
ougai (1.8.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.
|
16
|
-
rake (
|
17
|
-
rspec (3.
|
18
|
-
rspec-core (~> 3.
|
19
|
-
rspec-expectations (~> 3.
|
20
|
-
rspec-mocks (~> 3.
|
21
|
-
rspec-core (3.
|
22
|
-
rspec-support (~> 3.
|
23
|
-
rspec-expectations (3.
|
13
|
+
json (2.3.0)
|
14
|
+
json (2.3.0-java)
|
15
|
+
oj (3.10.6)
|
16
|
+
rake (13.0.1)
|
17
|
+
rspec (3.9.0)
|
18
|
+
rspec-core (~> 3.9.0)
|
19
|
+
rspec-expectations (~> 3.9.0)
|
20
|
+
rspec-mocks (~> 3.9.0)
|
21
|
+
rspec-core (3.9.1)
|
22
|
+
rspec-support (~> 3.9.1)
|
23
|
+
rspec-expectations (3.9.0)
|
24
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
-
rspec-support (~> 3.
|
26
|
-
rspec-mocks (3.
|
25
|
+
rspec-support (~> 3.9.0)
|
26
|
+
rspec-mocks (3.9.1)
|
27
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-support (3.
|
30
|
-
simplecov (0.17.
|
28
|
+
rspec-support (~> 3.9.0)
|
29
|
+
rspec-support (3.9.2)
|
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
|
-
|
44
|
-
bundler (>= 1.
|
43
|
+
amazing_print
|
44
|
+
bundler (>= 2.1.4)
|
45
45
|
ougai!
|
46
|
-
rake (
|
47
|
-
rspec (
|
48
|
-
simplecov
|
46
|
+
rake (>= 13.0.1)
|
47
|
+
rspec (>= 3.9.0)
|
48
|
+
simplecov (< 0.18)
|
49
49
|
timecop
|
50
50
|
yard
|
51
51
|
|
52
52
|
BUNDLED WITH
|
53
|
-
2.
|
53
|
+
2.1.4
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2016-
|
3
|
+
Copyright (c) 2016-2020 Toshimitsu Takahashi
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -2,14 +2,14 @@ Ougai
|
|
2
2
|
=====
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ougai.svg)](https://badge.fury.io/rb/ougai)
|
5
|
-
[![document](https://img.shields.io/badge/document-1.8.
|
5
|
+
[![document](https://img.shields.io/badge/document-1.8.3-green.svg)](http://www.rubydoc.info/gems/ougai/)
|
6
6
|
[![Build Status](https://travis-ci.org/tilfin/ougai.svg?branch=master)](https://travis-ci.org/tilfin/ougai)
|
7
7
|
[![Code Climate](https://codeclimate.com/github/tilfin/ougai/badges/gpa.svg)](https://codeclimate.com/github/tilfin/ougai)
|
8
8
|
[![Test Coverage](https://codeclimate.com/github/tilfin/ougai/badges/coverage.svg)](https://codeclimate.com/github/tilfin/ougai/coverage)
|
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/logger.rb
CHANGED
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimitsu Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -16,59 +16,59 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 2.1.4
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 2.1.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 13.0.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 13.0.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.9.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
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: []
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.
|
117
|
+
version: 2.4.0
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - ">="
|