fluent-plugin-elapsed-time 0.0.4 → 0.0.5

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: 6c0f9adda6567da79749a6fc034bcb0487c9e141
4
- data.tar.gz: ecb930003b14f489d71ef6855cf2156e28c9a53f
3
+ metadata.gz: b6b4411b3f7e6a8ed0dea0d37972d8df8cb2a295
4
+ data.tar.gz: 7f5453e0b6170779a246def7c9dec3f62c124eae
5
5
  SHA512:
6
- metadata.gz: e7b6c7c34fce1d88eaafed9d96e8b14b81752e36946dffe081043313a25781b88b642addca6f1ea71e9183bf02b67ac02e4cf65e438372d4b242e35dce66d743
7
- data.tar.gz: d697f84cf3dc25e83eb35851bea61186ddb458909f3d466e9bef96938cab494cb30293d21ce4e2f594dfb62012a5670d249211c2d2f16ea7929bff8b7ec5c888
6
+ metadata.gz: e966c603341c1737cc66c20aebea264d2d70d3695e7c92ff3d246b9f3538ff7cfb8101eface9eb8dd2adbdb92446db052150ad80601239050bd4963883343b7a
7
+ data.tar.gz: c4b491e6f0c50878618074be99b4c187cc79608766a9f23857f4e3194cf9f5a22897b14198a7994ac65ff1a6e9de86933a9ba421609c230a1f692a078eda4d19
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.0.5 (2014/02/04)
2
+
3
+ Enhancement:
4
+
5
+ * Support `log_level` option of Fleuntd v0.10.43
6
+
1
7
  ## 0.0.4 (2014/01/30)
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-elapsed-time"
6
- gem.version = "0.0.4"
6
+ gem.version = "0.0.5"
7
7
  gem.authors = ["Naotoshi Seo"]
8
8
  gem.email = "sonots@gmail.com"
9
9
  gem.homepage = "https://github.com/sonots/fluent-plugin-elapsed-time"
@@ -2,6 +2,11 @@ module Fluent
2
2
  class ElapsedTimeOutput < MultiOutput
3
3
  Plugin.register_output('elapsed_time', 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
  config_param :tag, :string, :default => 'elapsed'
6
11
  config_param :add_tag_prefix, :string, :default => nil
7
12
  config_param :remove_tag_prefix, :string, :default => nil
@@ -42,7 +47,7 @@ module Fluent
42
47
  unless type
43
48
  raise ConfigError, "Missing 'type' parameter on <store> directive"
44
49
  end
45
- $log.debug "adding store type=#{type.dump}"
50
+ log.debug "adding store type=#{type.dump}"
46
51
 
47
52
  output = Plugin.new_output(type)
48
53
  output.configure(e)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elapsed-time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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-30 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