exception_notification_fluent_logger_notifier 0.0.2 → 0.0.3
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/.travis.yml +2 -0
- data/README.md +9 -9
- data/lib/exception_notification_fluent_logger_notifier.rb +1 -0
- data/lib/exception_notifier/fluent_logger_notifier/version.rb +1 -1
- metadata +20 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d40275c6957a6ed050471a8e52fb62a7cffc566c
|
|
4
|
+
data.tar.gz: 47d2498fd5bde14e57d30830ec34ea20ee2be1a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abd54268f72625d5b1972696863b0e7787e51e2ace5c6466407924533e6939dd6d36db2df16a25cc8261533ae47d96b562b3027cb7eee491bdbf61552e07bf35
|
|
7
|
+
data.tar.gz: d82835047924c4ce2adfe4e74370aace65909424849d7d62d18e51729c68fbe2c9da5c4ac24cc67b0b3080d29b3abfa618897476e7a3a86e504e8aef98ae5c7f
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ExceptionNotifier::FluentLoggerNotifier
|
|
2
2
|
|
|
3
|
-
`ExceptionNotifier::FluentLoggerNotifier` is a custom notifier for [
|
|
3
|
+
`ExceptionNotifier::FluentLoggerNotifier` is a custom notifier for [ExceptionNotification](http://smartinez87.github.io/exception_notification/).
|
|
4
4
|
It sends exception notifications to [Fluentd data collector](http://fluentd.org/) via [fluent-logger](https://github.com/fluent/fluent-logger-ruby).
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
@@ -24,7 +24,7 @@ As other exception notifiers, add settings at the environments.
|
|
|
24
24
|
* Key `tag_prefix` is for the fluentd tag.
|
|
25
25
|
* Key `template` is for setting log format and must be Hash.
|
|
26
26
|
* Key `logger_settings` is for settings of the logger instance.
|
|
27
|
-
* If key `test_logger` is `true`, the notifier
|
|
27
|
+
* If key `test_logger` is `true`, the notifier uses `Fluent::Logger::TestLogger` instead of `FluentLogger`.
|
|
28
28
|
|
|
29
29
|
See also [exception_notifier's doc](http://smartinez87.github.io/exception_notification/#notifiers).
|
|
30
30
|
|
|
@@ -32,15 +32,15 @@ See also [exception_notifier's doc](http://smartinez87.github.io/exception_notif
|
|
|
32
32
|
|
|
33
33
|
```ruby
|
|
34
34
|
Whatever::Application.config.middleware.use ExceptionNotification::Rack,
|
|
35
|
-
:
|
|
36
|
-
:
|
|
37
|
-
:
|
|
38
|
-
:
|
|
39
|
-
:
|
|
35
|
+
fluent_logger: {
|
|
36
|
+
tag_prefix: "exceptions",
|
|
37
|
+
logger_settings: {
|
|
38
|
+
host: "localhost",
|
|
39
|
+
port: 8888,
|
|
40
40
|
}
|
|
41
|
-
:
|
|
41
|
+
template: {
|
|
42
42
|
exception_class: ->(exception, options) { exception.class_name },
|
|
43
|
-
exception_message: -> (exception, options) { exception.messaage },
|
|
43
|
+
exception_message: => -> (exception, options) { exception.messaage },
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "exception_notifier/fluent_logger_notifier"
|
metadata
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exception_notification_fluent_logger_notifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shimpei Makimoto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.3'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
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
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
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
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: pry
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '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
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: exception_notification
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: 4.0.1
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: 4.0.1
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: fluent-logger
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '0'
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
description:
|
|
@@ -101,12 +101,13 @@ executables: []
|
|
|
101
101
|
extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
|
103
103
|
files:
|
|
104
|
-
- .gitignore
|
|
105
|
-
- .travis.yml
|
|
104
|
+
- ".gitignore"
|
|
105
|
+
- ".travis.yml"
|
|
106
106
|
- Gemfile
|
|
107
107
|
- README.md
|
|
108
108
|
- Rakefile
|
|
109
109
|
- exception_notification_fluent_logger_notifier.gemspec
|
|
110
|
+
- lib/exception_notification_fluent_logger_notifier.rb
|
|
110
111
|
- lib/exception_notifier/fluent_logger_notifier.rb
|
|
111
112
|
- lib/exception_notifier/fluent_logger_notifier/version.rb
|
|
112
113
|
- spec/exception_notifier/fluent_logger_notifier_spec.rb
|
|
@@ -121,17 +122,17 @@ require_paths:
|
|
|
121
122
|
- lib
|
|
122
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
124
|
requirements:
|
|
124
|
-
- -
|
|
125
|
+
- - ">="
|
|
125
126
|
- !ruby/object:Gem::Version
|
|
126
127
|
version: '0'
|
|
127
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
129
|
requirements:
|
|
129
|
-
- -
|
|
130
|
+
- - ">="
|
|
130
131
|
- !ruby/object:Gem::Version
|
|
131
132
|
version: '0'
|
|
132
133
|
requirements: []
|
|
133
134
|
rubyforge_project:
|
|
134
|
-
rubygems_version: 2.0
|
|
135
|
+
rubygems_version: 2.2.0
|
|
135
136
|
signing_key:
|
|
136
137
|
specification_version: 4
|
|
137
138
|
summary: A custom notifier for ExceptionNotification which notifies exceptions to
|