fluent-plugin-reemit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8885b45c565d0a5858ed8d4ba90019ee9a95fd5e
4
- data.tar.gz: 51f3ae448c2c43b1ecbf6fe817b5087e603fa53a
3
+ metadata.gz: 28e555df53cba5c36b2e18a3ac61c83bdf1b1ede
4
+ data.tar.gz: 9f2ee252b827c5d47131bd7a5b78fa83d6dca1d7
5
5
  SHA512:
6
- metadata.gz: 8f9edc2ad37196e26d83536d15940f0d4fefe1cd678d75974e3f6c6f1c716966f4b8e45642b84937d816326741f237314edfcf837c3bb9921e1f4765c914e149
7
- data.tar.gz: cc6575d5e057680a10074b770cd31ff7389de4a17f96809d819b4d9eee3009277836a83cebefb7e8fb210602414b30aa1fd8d3932f09b2c2ddd304ea041335ce
6
+ metadata.gz: b586019a20b552fdef247349ffcd6447c647c3dbbd3cb5f0268845efa8ad4f9aa380a43dcc1e5c0af9cbec0dfb253f92d9a633b321c717553eab9a5118e84127
7
+ data.tar.gz: f0d0a817bc8d0d49ca071f9d9f89164f1ffde2e010c7b3f06a1ca2615e2d2618601926218c53cb0c741391bfc4f7740ef38e97ddc11ac5de0f5df170efe0a977
@@ -1,3 +1,9 @@
1
+ ## 0.0.3 (2014/02/04)
2
+
3
+ Enhancement:
4
+
5
+ * Support `log_level` option of Fleuntd v0.10.43
6
+
1
7
  ## 0.0.2 (2014/01/23)
2
8
 
3
9
  Enhancement:
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-reemit"
6
- gem.version = "0.0.2"
6
+ gem.version = "0.0.3"
7
7
  gem.authors = ["Naotoshi Seo"]
8
8
  gem.email = "sonots@gmail.com"
9
9
  gem.homepage = "https://github.com/sonots/fluent-plugin-reemit"
@@ -2,6 +2,11 @@ module Fluent
2
2
  class ReemitOutput < Output
3
3
  Fluent::Plugin.register_output('reemit', self)
4
4
 
5
+ # To support log_level option implemented by Fluentd v0.10.43
6
+ unless method_defined?(:log)
7
+ define_method("log") { $log }
8
+ end
9
+
5
10
  def initialize
6
11
  super
7
12
  @match_cache = {}
@@ -15,7 +20,7 @@ module Fluent
15
20
  engine_emit(tag, es)
16
21
  chain.next
17
22
  rescue => e
18
- $log.warn "reemit: #{e.class} #{e.message} #{e.backtrace.first}"
23
+ log.warn "reemit: #{e.class} #{e.message} #{e.backtrace.first}"
19
24
  end
20
25
 
21
26
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-reemit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd