ougai 2.0.0-java → 2.1.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +32 -28
- data/LICENSE.txt +1 -1
- data/README.md +10 -14
- data/lib/ougai/version.rb +1 -1
- metadata +14 -63
- data/spec/child_logger_spec.rb +0 -618
- data/spec/formatters/base_spec.rb +0 -98
- data/spec/formatters/bunyan_spec.rb +0 -157
- data/spec/formatters/pino_spec.rb +0 -168
- data/spec/formatters/readable_spec.rb +0 -142
- data/spec/logger_spec.rb +0 -765
- data/spec/logging_spec.rb +0 -107
- data/spec/ougai_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -78
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6f4e99226326c7076a1297c07e51f19722d73481f9ab9fa2e4d046a8d615ec7
|
|
4
|
+
data.tar.gz: 143e18dede3293499083e217d36dd26c153a363abf8cf431fa7241e38e64d775
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99699d2fa46285cc2c22a7cf573cdba0da0097f089aab051dbb87a6bb50f1ff9d42be36767e1d023ed259cdf6224fd8064af31e0efc0fafe22b5d007751beef3
|
|
7
|
+
data.tar.gz: bb92aa7447bd94a71b8222876401bf7063e116dbbc3c9f462130147b56528761962c87dec6472a12d6a4af3a4edb344b9d10b7543034342b0f2de3624122c44e
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,52 +1,56 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ougai (2.
|
|
5
|
-
|
|
4
|
+
ougai (2.1.0)
|
|
5
|
+
logger (~> 1.5)
|
|
6
|
+
oj (~> 3.17)
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
9
10
|
specs:
|
|
10
|
-
amazing_print (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
json (2.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
amazing_print (2.0.0)
|
|
12
|
+
bigdecimal (4.1.2)
|
|
13
|
+
diff-lcs (1.6.2)
|
|
14
|
+
docile (1.4.1)
|
|
15
|
+
json (2.20.0)
|
|
16
|
+
logger (1.7.0)
|
|
17
|
+
oj (3.17.3)
|
|
18
|
+
bigdecimal (>= 3.0)
|
|
19
|
+
ostruct (>= 0.2)
|
|
20
|
+
ostruct (0.6.3)
|
|
21
|
+
rake (13.4.2)
|
|
22
|
+
rspec (3.13.2)
|
|
23
|
+
rspec-core (~> 3.13.0)
|
|
24
|
+
rspec-expectations (~> 3.13.0)
|
|
25
|
+
rspec-mocks (~> 3.13.0)
|
|
26
|
+
rspec-core (3.13.6)
|
|
27
|
+
rspec-support (~> 3.13.0)
|
|
28
|
+
rspec-expectations (3.13.5)
|
|
23
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
24
|
-
rspec-support (~> 3.
|
|
25
|
-
rspec-mocks (3.
|
|
30
|
+
rspec-support (~> 3.13.0)
|
|
31
|
+
rspec-mocks (3.13.8)
|
|
26
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
27
|
-
rspec-support (~> 3.
|
|
28
|
-
rspec-support (3.
|
|
29
|
-
simplecov (0.
|
|
33
|
+
rspec-support (~> 3.13.0)
|
|
34
|
+
rspec-support (3.13.7)
|
|
35
|
+
simplecov (0.17.1)
|
|
30
36
|
docile (~> 1.1)
|
|
31
37
|
json (>= 1.8, < 3)
|
|
32
38
|
simplecov-html (~> 0.10.0)
|
|
33
39
|
simplecov-html (0.10.2)
|
|
34
|
-
timecop (0.9.
|
|
35
|
-
yard (0.9.
|
|
40
|
+
timecop (0.9.11)
|
|
41
|
+
yard (0.9.44)
|
|
36
42
|
|
|
37
43
|
PLATFORMS
|
|
38
|
-
|
|
39
|
-
universal-java-15
|
|
44
|
+
x86_64-linux
|
|
40
45
|
|
|
41
46
|
DEPENDENCIES
|
|
42
47
|
amazing_print
|
|
43
|
-
bundler (>= 2.1.4)
|
|
44
48
|
ougai!
|
|
45
|
-
rake (
|
|
46
|
-
rspec (
|
|
49
|
+
rake (~> 13.2)
|
|
50
|
+
rspec (~> 3.13)
|
|
47
51
|
simplecov (< 0.18)
|
|
48
52
|
timecop
|
|
49
53
|
yard
|
|
50
54
|
|
|
51
55
|
BUNDLED WITH
|
|
52
|
-
2.
|
|
56
|
+
2.3.3
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-2026 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,12 @@ Ougai
|
|
|
2
2
|
=====
|
|
3
3
|
|
|
4
4
|
[](https://badge.fury.io/rb/ougai)
|
|
5
|
-
[](https://codeclimate.com/github/tilfin/ougai)
|
|
8
|
-
[](https://codeclimate.com/github/tilfin/ougai/coverage)
|
|
5
|
+
[](http://www.rubydoc.info/gems/ougai/)
|
|
6
|
+
[](https://github.com/tilfin/ougai/actions/workflows/ci.yml)
|
|
9
7
|
|
|
10
|
-
A structured logging system is capable of handling a message, structured data or an exception easily.
|
|
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
|
|
8
|
+
A structured logging system that is capable of handling a message, structured data, or an exception easily.
|
|
9
|
+
It has JSON formatters compatible with [Bunyan](https://github.com/trentm/node-bunyan) or [pino](https://github.com/pinojs/pino) for Node.js, and a
|
|
10
|
+
human-readable formatter with [Amazing Print](https://github.com/amazing-print/amazing_print) for the console.
|
|
13
11
|
|
|
14
12
|
## Installation
|
|
15
13
|
|
|
@@ -33,14 +31,13 @@ $ gem install ougai
|
|
|
33
31
|
|
|
34
32
|
## Usage
|
|
35
33
|
|
|
36
|
-
**Ougai::Logger** is sub-class of
|
|
37
|
-
All arguments of the `initialize` pass through
|
|
34
|
+
**Ougai::Logger** is a sub-class of the standard [Logger](https://ruby-doc.org/stdlib-2.4.1/libdoc/logger/rdoc/Logger.html) in Ruby.
|
|
35
|
+
All arguments of the `initialize` pass through to **::Logger**.
|
|
38
36
|
|
|
39
37
|
```ruby
|
|
40
|
-
require 'rubygems'
|
|
41
38
|
require 'ougai'
|
|
42
39
|
|
|
43
|
-
logger = Ougai::Logger.new(
|
|
40
|
+
logger = Ougai::Logger.new($stdout)
|
|
44
41
|
```
|
|
45
42
|
|
|
46
43
|
### TRACE level
|
|
@@ -176,7 +173,7 @@ logger.fatal do
|
|
|
176
173
|
end
|
|
177
174
|
```
|
|
178
175
|
|
|
179
|
-
To specify more than one
|
|
176
|
+
To specify more than one message, exception, and custom data, the block returns them as an array.
|
|
180
177
|
|
|
181
178
|
### Adding custom fields to all logs
|
|
182
179
|
|
|
@@ -357,7 +354,6 @@ gem 'amazing_print'
|
|
|
357
354
|
Set *Ougai::Formatters::Readable* instance to `formatter` accessor
|
|
358
355
|
|
|
359
356
|
```ruby
|
|
360
|
-
require 'rubygems'
|
|
361
357
|
require 'ougai'
|
|
362
358
|
|
|
363
359
|
logger = Ougai::Logger.new(STDOUT)
|
|
@@ -366,7 +362,7 @@ logger.formatter = Ougai::Formatters::Readable.new
|
|
|
366
362
|
|
|
367
363
|
### Screen result example
|
|
368
364
|
|
|
369
|
-

|
|
370
366
|
|
|
371
367
|
|
|
372
368
|
## How to use with famous products, services and libraries
|
data/lib/ougai/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,71 +1,42 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ougai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Toshimitsu Takahashi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: logger
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
19
|
-
name: jrjackson
|
|
18
|
+
version: '1.5'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
|
29
|
-
requirements:
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 2.1.4
|
|
33
|
-
name: bundler
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 2.1.4
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: 13.0.1
|
|
47
|
-
name: rake
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 13.0.1
|
|
25
|
+
version: '1.5'
|
|
55
26
|
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: jrjackson
|
|
56
28
|
requirement: !ruby/object:Gem::Requirement
|
|
57
29
|
requirements:
|
|
58
|
-
- - "
|
|
30
|
+
- - "~>"
|
|
59
31
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
61
|
-
|
|
62
|
-
type: :development
|
|
32
|
+
version: '0.4'
|
|
33
|
+
type: :runtime
|
|
63
34
|
prerelease: false
|
|
64
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
36
|
requirements:
|
|
66
|
-
- - "
|
|
37
|
+
- - "~>"
|
|
67
38
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
39
|
+
version: '0.4'
|
|
69
40
|
description: |2
|
|
70
41
|
A structured logging system is capable of handling a message, custom data or an exception easily.
|
|
71
42
|
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with Amazing Print for console.
|
|
@@ -93,20 +64,10 @@ files:
|
|
|
93
64
|
- lib/ougai/serializers/json_jr_jackson.rb
|
|
94
65
|
- lib/ougai/serializers/json_oj.rb
|
|
95
66
|
- lib/ougai/version.rb
|
|
96
|
-
- spec/child_logger_spec.rb
|
|
97
|
-
- spec/formatters/base_spec.rb
|
|
98
|
-
- spec/formatters/bunyan_spec.rb
|
|
99
|
-
- spec/formatters/pino_spec.rb
|
|
100
|
-
- spec/formatters/readable_spec.rb
|
|
101
|
-
- spec/logger_spec.rb
|
|
102
|
-
- spec/logging_spec.rb
|
|
103
|
-
- spec/ougai_spec.rb
|
|
104
|
-
- spec/spec_helper.rb
|
|
105
67
|
homepage: https://github.com/tilfin/ougai
|
|
106
68
|
licenses:
|
|
107
69
|
- MIT
|
|
108
70
|
metadata: {}
|
|
109
|
-
post_install_message:
|
|
110
71
|
rdoc_options: []
|
|
111
72
|
require_paths:
|
|
112
73
|
- lib
|
|
@@ -114,25 +75,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
75
|
requirements:
|
|
115
76
|
- - ">="
|
|
116
77
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
78
|
+
version: 3.1.0
|
|
118
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
80
|
requirements:
|
|
120
81
|
- - ">="
|
|
121
82
|
- !ruby/object:Gem::Version
|
|
122
83
|
version: '0'
|
|
123
84
|
requirements: []
|
|
124
|
-
rubygems_version:
|
|
125
|
-
signing_key:
|
|
85
|
+
rubygems_version: 4.0.3
|
|
126
86
|
specification_version: 4
|
|
127
87
|
summary: JSON logger compatible with node-bunyan or pino is capable of handling structured
|
|
128
88
|
data easily.
|
|
129
|
-
test_files:
|
|
130
|
-
- spec/child_logger_spec.rb
|
|
131
|
-
- spec/logging_spec.rb
|
|
132
|
-
- spec/ougai_spec.rb
|
|
133
|
-
- spec/spec_helper.rb
|
|
134
|
-
- spec/logger_spec.rb
|
|
135
|
-
- spec/formatters/pino_spec.rb
|
|
136
|
-
- spec/formatters/readable_spec.rb
|
|
137
|
-
- spec/formatters/base_spec.rb
|
|
138
|
-
- spec/formatters/bunyan_spec.rb
|
|
89
|
+
test_files: []
|