act-fluent-logger-rails 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -2
- data/Appraisals +5 -0
- data/CHANGELOG.md +4 -0
- data/README.md +13 -2
- data/act-fluent-logger-rails.gemspec +2 -2
- data/gemfiles/rails_5.1.gemfile +9 -0
- data/gemfiles/rails_5.1.gemfile.lock +93 -0
- data/lib/act-fluent-logger-rails/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0b1b07d124f4df4291df1828410a52032153b0d
|
4
|
+
data.tar.gz: ae98806e1861dd75b0ed466197081b56eb6807cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44dbf6bb23664cebb0c2aabdbec0311ccda2f5b5bb6b58e7524005c7d70eee32299d2df7aa65d3bf76e482725afdd0fbba980e960cc015014c6be313fb1c266
|
7
|
+
data.tar.gz: bc27013495ce4e910bcb9795c74892b8e287994fa0bd25722d3cf029b43ba14ef90112d2f6c096e4d3aa336a7aeaf623adb2ba7d5447825f9eadddfee72f4bab
|
data/.travis.yml
CHANGED
@@ -2,16 +2,22 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 2.0.0-p648
|
4
4
|
- 2.1.10
|
5
|
-
- 2.2.
|
6
|
-
- 2.3.
|
5
|
+
- 2.2.7
|
6
|
+
- 2.3.4
|
7
|
+
- 2.4.1
|
7
8
|
gemfile:
|
8
9
|
- gemfiles/rails_4.0.gemfile
|
9
10
|
- gemfiles/rails_4.1.gemfile
|
10
11
|
- gemfiles/rails_4.2.gemfile
|
11
12
|
- gemfiles/rails_5.0.gemfile
|
13
|
+
- gemfiles/rails_5.1.gemfile
|
12
14
|
matrix:
|
13
15
|
exclude:
|
14
16
|
- rvm: 2.0.0-p648
|
15
17
|
gemfile: gemfiles/rails_5.0.gemfile
|
18
|
+
- rvm: 2.0.0-p648
|
19
|
+
gemfile: gemfiles/rails_5.1.gemfile
|
16
20
|
- rvm: 2.1.10
|
17
21
|
gemfile: gemfiles/rails_5.0.gemfile
|
22
|
+
- rvm: 2.1.10
|
23
|
+
gemfile: gemfiles/rails_5.1.gemfile
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -44,14 +44,14 @@ Don't use config.log_tags.
|
|
44
44
|
tag: 'foo'
|
45
45
|
messages_type: 'string'
|
46
46
|
severity_key: 'level' # default severity
|
47
|
-
|
47
|
+
|
48
48
|
test:
|
49
49
|
fluent_host: '127.0.0.1'
|
50
50
|
fluent_port: 24224
|
51
51
|
tag: 'foo'
|
52
52
|
messages_type: 'string'
|
53
53
|
severity_key: 'level' # default severity
|
54
|
-
|
54
|
+
|
55
55
|
production:
|
56
56
|
fluent_host: '127.0.0.1'
|
57
57
|
fluent_port: 24224
|
@@ -94,6 +94,17 @@ You can add any tags at run time.
|
|
94
94
|
|
95
95
|
logger[:foo] = "foo value"
|
96
96
|
|
97
|
+
### Usage as a standalone logger
|
98
|
+
|
99
|
+
Typical usage is as a replacement for the default Rails logger, in which case
|
100
|
+
messages are collected and flushed automatically as part of the request
|
101
|
+
lifecycle. If you wish to use it instead as a separate logger and log to it
|
102
|
+
manually then it is necessary to initialize with the `flush_immediately` flag.
|
103
|
+
|
104
|
+
```ruby
|
105
|
+
ActFluentLoggerRails::Logger.new(flush_immediately: true)
|
106
|
+
```
|
107
|
+
|
97
108
|
|
98
109
|
## Contributing
|
99
110
|
|
@@ -20,6 +20,6 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.add_development_dependency "rspec", '~> 3.5.0'
|
22
22
|
gem.add_runtime_dependency "fluent-logger"
|
23
|
-
gem.add_runtime_dependency "railties", ">= 4", "< 5.
|
24
|
-
gem.add_runtime_dependency "activesupport", ">= 4", "< 5.
|
23
|
+
gem.add_runtime_dependency "railties", ">= 4", "< 5.2"
|
24
|
+
gem.add_runtime_dependency "activesupport", ">= 4", "< 5.2"
|
25
25
|
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
act-fluent-logger-rails (0.3.1)
|
5
|
+
activesupport (>= 4, < 5.2)
|
6
|
+
fluent-logger
|
7
|
+
railties (>= 4, < 5.2)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionpack (5.1.0)
|
13
|
+
actionview (= 5.1.0)
|
14
|
+
activesupport (= 5.1.0)
|
15
|
+
rack (~> 2.0)
|
16
|
+
rack-test (~> 0.6.3)
|
17
|
+
rails-dom-testing (~> 2.0)
|
18
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
19
|
+
actionview (5.1.0)
|
20
|
+
activesupport (= 5.1.0)
|
21
|
+
builder (~> 3.1)
|
22
|
+
erubi (~> 1.4)
|
23
|
+
rails-dom-testing (~> 2.0)
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
25
|
+
activesupport (5.1.0)
|
26
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
27
|
+
i18n (~> 0.7)
|
28
|
+
minitest (~> 5.1)
|
29
|
+
tzinfo (~> 1.1)
|
30
|
+
appraisal (2.2.0)
|
31
|
+
bundler
|
32
|
+
rake
|
33
|
+
thor (>= 0.14.0)
|
34
|
+
builder (3.2.3)
|
35
|
+
concurrent-ruby (1.0.5)
|
36
|
+
diff-lcs (1.3)
|
37
|
+
erubi (1.6.0)
|
38
|
+
fluent-logger (0.7.1)
|
39
|
+
msgpack (>= 1.0.0, < 2)
|
40
|
+
i18n (0.8.1)
|
41
|
+
loofah (2.0.3)
|
42
|
+
nokogiri (>= 1.5.9)
|
43
|
+
method_source (0.8.2)
|
44
|
+
mini_portile2 (2.1.0)
|
45
|
+
minitest (5.10.1)
|
46
|
+
msgpack (1.1.0)
|
47
|
+
nokogiri (1.7.1)
|
48
|
+
mini_portile2 (~> 2.1.0)
|
49
|
+
rack (2.0.1)
|
50
|
+
rack-test (0.6.3)
|
51
|
+
rack (>= 1.0)
|
52
|
+
rails-dom-testing (2.0.2)
|
53
|
+
activesupport (>= 4.2.0, < 6.0)
|
54
|
+
nokogiri (~> 1.6)
|
55
|
+
rails-html-sanitizer (1.0.3)
|
56
|
+
loofah (~> 2.0)
|
57
|
+
railties (5.1.0)
|
58
|
+
actionpack (= 5.1.0)
|
59
|
+
activesupport (= 5.1.0)
|
60
|
+
method_source
|
61
|
+
rake (>= 0.8.7)
|
62
|
+
thor (>= 0.18.1, < 2.0)
|
63
|
+
rake (12.0.0)
|
64
|
+
rspec (3.5.0)
|
65
|
+
rspec-core (~> 3.5.0)
|
66
|
+
rspec-expectations (~> 3.5.0)
|
67
|
+
rspec-mocks (~> 3.5.0)
|
68
|
+
rspec-core (3.5.4)
|
69
|
+
rspec-support (~> 3.5.0)
|
70
|
+
rspec-expectations (3.5.0)
|
71
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
+
rspec-support (~> 3.5.0)
|
73
|
+
rspec-mocks (3.5.0)
|
74
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
+
rspec-support (~> 3.5.0)
|
76
|
+
rspec-support (3.5.0)
|
77
|
+
thor (0.19.4)
|
78
|
+
thread_safe (0.3.6)
|
79
|
+
tzinfo (1.2.3)
|
80
|
+
thread_safe (~> 0.1)
|
81
|
+
|
82
|
+
PLATFORMS
|
83
|
+
ruby
|
84
|
+
|
85
|
+
DEPENDENCIES
|
86
|
+
act-fluent-logger-rails!
|
87
|
+
activesupport (= 5.1.0)
|
88
|
+
appraisal
|
89
|
+
railties (= 5.1.0)
|
90
|
+
rspec (~> 3.5.0)
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
1.14.6
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: act-fluent-logger-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAHARA Yoshinori
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '4'
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '5.
|
50
|
+
version: '5.2'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '4'
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '5.
|
60
|
+
version: '5.2'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: activesupport
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
version: '4'
|
68
68
|
- - "<"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '5.
|
70
|
+
version: '5.2'
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '4'
|
78
78
|
- - "<"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '5.
|
80
|
+
version: '5.2'
|
81
81
|
description: Fluent logger
|
82
82
|
email:
|
83
83
|
- read.eval.print@gmail.com
|
@@ -102,6 +102,8 @@ files:
|
|
102
102
|
- gemfiles/rails_4.2.gemfile.lock
|
103
103
|
- gemfiles/rails_5.0.gemfile
|
104
104
|
- gemfiles/rails_5.0.gemfile.lock
|
105
|
+
- gemfiles/rails_5.1.gemfile
|
106
|
+
- gemfiles/rails_5.1.gemfile.lock
|
105
107
|
- lib/act-fluent-logger-rails.rb
|
106
108
|
- lib/act-fluent-logger-rails/logger.rb
|
107
109
|
- lib/act-fluent-logger-rails/version.rb
|