fluent-plugin-samefile 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: 9fc2a2bb403045fece033f840fa8684289178478
4
- data.tar.gz: ff9b26f334e2c5ba27dc41812f8224bfd73ec338
3
+ metadata.gz: 0936d37d45ef284444d2a7fea99990f7ec7e94b0
4
+ data.tar.gz: 7c5864b0e5521b10e0b1278b588477f469dacd63
5
5
  SHA512:
6
- metadata.gz: df26782a55302c1e49d24d26cfd5ae195e76f84370ff14f90215cb50e788e126ede8665c483e5cb670b96f7f3130d670275f50ac6519a72f779ec1b5c4cb56aa
7
- data.tar.gz: bde6ccbae9533d41f3b82a099247b8eb47f793ca71756dd0bc70e75b535aea49068bc80be41830381f0d12e73e39d2fa75c6826ae9e0947c0d232307ca0f42d3
6
+ metadata.gz: 579891e1c85838debdbd9986bdc1a503a845d3cd84d41ef735480ba8897eb8216e4e85f64be9d8b32ca00bb873a751601cfe0ef53a9e19361b43fc39239355d4
7
+ data.tar.gz: 4090086cb98fab6f666d382bdd530a94f58394aef6c0ea0b13740d73da330a3f7595c4a1c36c148cf38259c0a82414a445f9adc6ed996382d4f6d82235cb64cb
data/README.md CHANGED
@@ -24,6 +24,28 @@ $ sudo td-agent-gem install fluent-plugin-samefile
24
24
  ```
25
25
 
26
26
 
27
+ If need log rotation, use logrotate.d.
28
+
29
+ `/etc/logrotate.d/td-agent_output`
30
+
31
+ ```
32
+ /path/to/logfile.log
33
+ {
34
+ daily
35
+ rotate 7
36
+ compress
37
+ delaycompress
38
+ notifempty
39
+ create 644 td-agent td-agent
40
+ sharedscripts
41
+ postrotate
42
+ pid=/var/run/td-agent/td-agent.pid
43
+ test -s $pid && kill -USR1 "$(cat $pid)"
44
+ endscript
45
+ }
46
+ ```
47
+
48
+
27
49
  ## TODO
28
50
 
29
51
  * patches welcome!
@@ -4,19 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-samefile"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Yuri Umezaki"]
9
9
  spec.email = ["bungoume@gmail.com"]
10
10
  spec.homepage = "https://github.com/bungoume/fluent-plugin-samefile"
11
11
  spec.summary = "Fluentd plugin to output same file"
12
12
  spec.description = spec.summary
13
- spec.license = "APLv2"
13
+ spec.license = "Apache-2.0"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "fluentd"
20
+ spec.add_runtime_dependency "fluentd", [">= 0.10.58", "< 2"]
21
21
  spec.add_development_dependency "rake"
22
22
  end
@@ -21,8 +21,8 @@ module Fluent
21
21
 
22
22
  FileUtils.mkdir_p File.dirname(@path)
23
23
 
24
- conf['format'] = @format
25
- @formatter = TextFormatter.create(conf)
24
+ @formatter = Plugin.new_formatter(@format)
25
+ @formatter.configure(conf)
26
26
  end
27
27
 
28
28
  def format(tag, time, record)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-samefile
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
  - Yuri Umezaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2015-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.10.58
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: 0.10.58
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +60,7 @@ files:
54
60
  - lib/fluent/plugin/out_samefile.rb
55
61
  homepage: https://github.com/bungoume/fluent-plugin-samefile
56
62
  licenses:
57
- - APLv2
63
+ - Apache-2.0
58
64
  metadata: {}
59
65
  post_install_message:
60
66
  rdoc_options: []