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 +6 -0
- data/lib/td/logger/agent/rails.rb +1 -1
- data/lib/td/logger/tdlog.rb +2 -2
- data/lib/td/logger/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
@@ -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(
|
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
|
data/lib/td/logger/tdlog.rb
CHANGED
@@ -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(
|
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 =
|
31
|
+
@flush_interval = 300
|
32
32
|
@retry_wait = 1.0
|
33
33
|
@retry_limit = 8
|
34
34
|
|
data/lib/td/logger/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.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-
|
18
|
+
date: 2011-09-09 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|