td-logger 0.3.25 → 0.3.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -9
- data/ChangeLog +5 -0
- data/README.rdoc +11 -4
- data/VERSION +1 -1
- data/lib/td/logger/version.rb +1 -1
- data/spec/td/logger/treasure_data_logger_spec.rb +1 -1
- data/td-logger.gemspec +8 -3
- metadata +15 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93a51a7602e52997410fdb353480d3badc30ab39
|
4
|
+
data.tar.gz: 5aa697dfe1eeb2929c5a9d5334d538f708ace69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3de30c57793a5c0a2b091f1992ed404ffe224d0d7e5788574871f95e48818076c68cd8af6f7d46b03bd3f786f919ffba0548ef76c3be20bca8bbe96cede206e7
|
7
|
+
data.tar.gz: c4bfddca0f66809a5626ce9acdf922581e5b80b3ef4d6a802d8c212425dfd4bfebe75cf8814355a5d3d73c0af27ecf0175f4dff6404540d7c4d7a0eee6b41440
|
data/.travis.yml
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.3.0
|
4
|
+
- 2.0.0-p648
|
5
|
+
- 2.1.10
|
6
|
+
- 2.2.5
|
7
|
+
- 2.3.1
|
9
8
|
- ruby-head
|
10
|
-
-
|
11
|
-
- jruby-1.7.20
|
9
|
+
- jruby-9.1.5.0
|
12
10
|
|
13
11
|
sudo: false
|
14
12
|
|
@@ -24,8 +22,7 @@ script: bundle exec rake spec
|
|
24
22
|
matrix:
|
25
23
|
allow_failures:
|
26
24
|
- rvm: ruby-head
|
27
|
-
- rvm:
|
28
|
-
- rvm: jruby-1.7.20
|
25
|
+
- rvm: jruby-9.1.5.0
|
29
26
|
|
30
27
|
notifications:
|
31
28
|
webhooks: http://td-beda.herokuapp.com/travisci_callback
|
data/ChangeLog
CHANGED
data/README.rdoc
CHANGED
@@ -67,7 +67,7 @@ Please note that we recommend to use a write-only API key. To obtain one, please
|
|
67
67
|
|
68
68
|
When the 'agent' and 'tag' options are specified, the events are logged into the local td-agent daemon. Later on, the daemon uploads the event periodically to the cloud (app -> td-agent -> cloud).
|
69
69
|
|
70
|
-
This requires additional setup steps but lowers the memory and performance impact to your application processes. For the installation process, please look at
|
70
|
+
This requires additional setup steps but lowers the memory and performance impact to your application processes. For the installation process, please look at the section {"How to Install Treasure Agent?"}[https://docs.treasuredata.com/articles/td-agent#how-to-install-treasure-agent] on "Quickstart Guide".
|
71
71
|
|
72
72
|
NOTE: This configuration is not supported on PaaS platforms.
|
73
73
|
|
@@ -75,7 +75,15 @@ NOTE: This configuration is not supported on PaaS platforms.
|
|
75
75
|
agent: "localhost:24224"
|
76
76
|
tag: td.myapp
|
77
77
|
debug_mode: false
|
78
|
-
|
78
|
+
|
79
|
+
Alternatively, one can initialize the Ruby Logger module for indirect upload within the application:
|
80
|
+
|
81
|
+
TreasureData::Logger.open_agent('td.myapp',
|
82
|
+
:host => 'localhost',
|
83
|
+
:port => 24224)
|
84
|
+
|
85
|
+
The arguments of the 'open_agent' function correspond to the configuration option of the underlying {Fluentd Ruby Logger (fluent-logger-ruby)}[https://github.com/fluent/fluent-logger-ruby/] library.
|
86
|
+
|
79
87
|
== Logging events
|
80
88
|
|
81
89
|
You can log anytime using 'TD.event.post' method:
|
@@ -118,8 +126,7 @@ You can access the logger instance via TD.logger to check the status.
|
|
118
126
|
|
119
127
|
== Further Readings
|
120
128
|
|
121
|
-
If you have any problem, please
|
122
|
-
{Support Site}[http://help.treasure-data.com].
|
129
|
+
If you have any problem, please refer our {document site}[https://docs.treasuredata.com/].
|
123
130
|
|
124
131
|
== Copyright
|
125
132
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.26
|
data/lib/td/logger/version.rb
CHANGED
@@ -6,7 +6,7 @@ describe TreasureData::Logger::TreasureDataLogger do
|
|
6
6
|
it 'with apikey' do
|
7
7
|
td = TreasureData::Logger::TreasureDataLogger.new('db1', :apikey => 'test_1')
|
8
8
|
expect(td.instance_variable_get(:@client).api.apikey).to eq('test_1')
|
9
|
-
expect(td.instance_variable_get(:@client).api.instance_variable_get(:@ssl)).to eq(
|
9
|
+
expect(td.instance_variable_get(:@client).api.instance_variable_get(:@ssl)).to eq(true)
|
10
10
|
end
|
11
11
|
|
12
12
|
it 'with apikey and use_ssl' do
|
data/td-logger.gemspec
CHANGED
@@ -30,11 +30,16 @@ EOF
|
|
30
30
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
31
31
|
gem.require_paths = ['lib']
|
32
32
|
|
33
|
-
gem.add_dependency "msgpack",
|
33
|
+
gem.add_dependency "msgpack", ">= 0.5.6", "< 2.0"
|
34
34
|
gem.add_dependency "td-client", "~> 0.8.66"
|
35
|
-
gem.add_dependency "fluent-logger", "
|
35
|
+
gem.add_dependency "fluent-logger", ">= 0.5.0", "< 2.0"
|
36
36
|
gem.add_development_dependency 'rake', '>= 0.9.2'
|
37
37
|
gem.add_development_dependency 'rspec', '~> 3.0'
|
38
38
|
gem.add_development_dependency 'coveralls'
|
39
|
-
|
39
|
+
ruby_version = Gem::Version.new(RUBY_VERSION)
|
40
|
+
if ruby_version >= Gem::Version.new('2.2.2')
|
41
|
+
gem.add_development_dependency 'rack'
|
42
|
+
else
|
43
|
+
gem.add_development_dependency 'rack', '~> 1.0'
|
44
|
+
end
|
40
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -16,44 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
20
|
-
- - "!="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.5.0
|
23
|
-
- - "!="
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 0.5.1
|
26
|
-
- - "!="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: 0.5.2
|
29
|
-
- - "!="
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 0.5.3
|
19
|
+
version: 0.5.6
|
32
20
|
- - "<"
|
33
21
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
22
|
+
version: '2.0'
|
35
23
|
type: :runtime
|
36
24
|
prerelease: false
|
37
25
|
version_requirements: !ruby/object:Gem::Requirement
|
38
26
|
requirements:
|
39
27
|
- - ">="
|
40
28
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
42
|
-
- - "!="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 0.5.0
|
45
|
-
- - "!="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.5.1
|
48
|
-
- - "!="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.5.2
|
51
|
-
- - "!="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.5.3
|
29
|
+
version: 0.5.6
|
54
30
|
- - "<"
|
55
31
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
32
|
+
version: '2.0'
|
57
33
|
- !ruby/object:Gem::Dependency
|
58
34
|
name: td-client
|
59
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,16 +48,22 @@ dependencies:
|
|
72
48
|
name: fluent-logger
|
73
49
|
requirement: !ruby/object:Gem::Requirement
|
74
50
|
requirements:
|
75
|
-
- - "
|
51
|
+
- - ">="
|
76
52
|
- !ruby/object:Gem::Version
|
77
53
|
version: 0.5.0
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '2.0'
|
78
57
|
type: :runtime
|
79
58
|
prerelease: false
|
80
59
|
version_requirements: !ruby/object:Gem::Requirement
|
81
60
|
requirements:
|
82
|
-
- - "
|
61
|
+
- - ">="
|
83
62
|
- !ruby/object:Gem::Version
|
84
63
|
version: 0.5.0
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.0'
|
85
67
|
- !ruby/object:Gem::Dependency
|
86
68
|
name: rake
|
87
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
173
|
version: '0'
|
192
174
|
requirements: []
|
193
175
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.5.1
|
195
177
|
signing_key:
|
196
178
|
specification_version: 4
|
197
179
|
summary: Treasure Data logging library
|