td-logger 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2011-09-08 version 0.2.3
3
+
4
+ * Loggers use STDERR instead of STDOUT
5
+ * Use flush_interval 5 min.
6
+
7
+
2
8
  == 2011-09-08 version 0.2.2
3
9
 
4
10
  * Use ERB before loading conf/treasure_data.yml
@@ -85,7 +85,7 @@ EOF
85
85
  def self.read_config(rails)
86
86
  require 'yaml'
87
87
  require 'erb'
88
- logger = ::Rails.logger || ::Logger.new(STDOUT)
88
+ logger = ::Rails.logger || ::Logger.new(STDERR)
89
89
  begin
90
90
  src = File.read("#{rails_root}/#{CONFIG_PATH}")
91
91
  yaml = ERB.new(src).result
@@ -18,7 +18,7 @@ class TreasureDataLogger < Fluent::Logger::LoggerBase
18
18
 
19
19
  @tag = tag
20
20
  @auto_create_table = auto_create_table
21
- @logger = ::Logger.new(STDOUT)
21
+ @logger = ::Logger.new(STDERR)
22
22
 
23
23
  @client = TreasureData::Client.new(apikey)
24
24
 
@@ -28,7 +28,7 @@ class TreasureDataLogger < Fluent::Logger::LoggerBase
28
28
  @queue = []
29
29
 
30
30
  @chunk_limit = 8*1024*1024
31
- @flush_interval = 60
31
+ @flush_interval = 300
32
32
  @retry_wait = 1.0
33
33
  @retry_limit = 8
34
34
 
@@ -1,7 +1,7 @@
1
1
  module TreasureData
2
2
  module Logger
3
3
 
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td-logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sadayuki Furuhashi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-08 00:00:00 +09:00
18
+ date: 2011-09-09 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency