log4r-logstash 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2E5YWU1NjBiYTY5ZTJlYzYzNjkxZWQ5ZjZhNTY0MWUzZjNjN2I5MQ==
5
+ data.tar.gz: !binary |-
6
+ ZWVhNjc5NGIxZjQzMmFlMDUzODJlMzZiZDllZDM0NGRiMjBkNmRlNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NmE1NWZlNmExMTQyZGJkZTgzYTJlZDBjYjY2YjRiMTNlYWZmYWQ2ZjRhZGFj
10
+ MzlkODAxMDQ4MjM4NDE0OTk0ODU3ZWY0OTUxNWQ2ZWZhMmMyMjJmMzdmMDAy
11
+ M2JlNzYxMTkwNTMzNDJiY2E5YjAyMjY1YTBkZDI3MjQ1NDg0MjI=
12
+ data.tar.gz: !binary |-
13
+ OGNkMDVlOGRmZTk1NGVkYmM3M2QxNzcwNTJiNjIyMjBmYjJiYjkzNmU4MDI2
14
+ MDcxYTE2NmRkNDk4NzhmZTc3NGYxMGYyNTg3ZWQ4YWI3NmJkNThhYjkyOGU3
15
+ MjJkNzhmZDJlN2UzOTZmOWUxYzNmNzdiNTdlOWY1Y2Q5YmMxNjQ=
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
15
+ /.vagrant/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,22 @@
1
+ AllCops:
2
+ Exclude:
3
+ - '*.gemspec'
4
+ - 'Vagrantfile'
5
+
6
+ Metrics/LineLength:
7
+ Max: 120
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+
12
+ Metrics/MethodLength:
13
+ Max: 20
14
+
15
+ Metrics/AbcSize:
16
+ Max: 20
17
+
18
+ StringLiterals:
19
+ EnforcedStyle: double_quotes
20
+
21
+ Style/FileName:
22
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ deploy:
6
+ provider: rubygems
7
+ gem: log4r-logstash
8
+ api_key:
9
+ secure: X5VNoys5YafYfpx2nuC8kjKqOSwFAKCFWizEsuaD77WtXXpgwYbhvuGxdkBqaRrV2fw+24V+ZnwibiuCbPdfd6rwgLEsOWnQk3uf5JG+a2cegoklM5fX5jneZxE5uNEa8Il45GCTApWpknvejIKYyzzG8uknnautTAEIK/gh7Rw=
10
+ on:
11
+ tags: true
12
+ all_branches: true
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in log4r-logstash.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2015 Cimpress
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # log4r-logstash
2
+
3
+ log4r-logstash allows you to send Log4r logevents to Logstash with json encoding.
4
+ It currently only supports a redis transport, but could easily be extended to other
5
+ transports based on need.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'log4r-logstash'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundled
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install log4r-logstash
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ Log = Log4r::Logger.new("outofthebox") # create a logger
27
+ Log.add Log4r::Logstash::RedisOutputter.new("redis")
28
+ Log.debug("test")
29
+ # : Sends the following json to 127.0.0.1:6379
30
+ # {
31
+ # "type":"Log4r::LogEvent",
32
+ # "index":"logstash",
33
+ # "level":"DEBUG",
34
+ # "data":"test",
35
+ # "timestamp":"2015-01-27T19:44:29Z"
36
+ # }
37
+ ```
38
+ Send to redis running on another host
39
+
40
+ ```ruby
41
+ Log.add Log4r::Logstash::RedisOutputter.new("redis", host: "myredisserver.mydomain.com")
42
+ ```
43
+
44
+ Specify an index name
45
+ ```ruby
46
+ Log.add Log4r::Logstash::RedisOutputter.new("redis", index: "my_index")
47
+ ```
48
+
49
+ You can override many of the default field names to match your conventions
50
+
51
+ ```ruby
52
+ Log.add Log4r::Logstash::RedisOutputter.new("redis",
53
+ level_field_name: "LEVEL"
54
+ data_field_name: "MESSAGE")
55
+ # {
56
+ # "type":"Log4r::LogEvent",
57
+ # "index":"logstash",
58
+ # "LEVEL":"DEBUG",
59
+ # "MESSAGE":"test",
60
+ # }
61
+ ```
62
+
63
+ Add extra fields as necessary for your application. These will be passed straight
64
+ through in the json as top level key-value pairs.
65
+
66
+ ```ruby
67
+ Log.add Log4r::Logstash::RedisOutputter.new("redis", additional_fields: {
68
+ foo: "bar",
69
+ goo: "baz"
70
+ time: -> { Time.now.getutc.rfc822 }
71
+ })
72
+ # {
73
+ # "type":"Log4r::LogEvent",
74
+ # "index":"logstash",
75
+ # "level":"DEBUG",
76
+ # "data":"test",
77
+ # "timestamp":"2015-01-27T19:44:29Z"
78
+ # "foo":"bar"
79
+ # "goo":"baz"
80
+ # "time":"Wed, 27 Jan 2015 19:44:29 -000"
81
+ # }
82
+ ```
83
+
84
+ ## Contributing
85
+
86
+ 1. Fork it ( https://github.com/Cimpress-MCP/log4r-logstash/fork )
87
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
88
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
89
+ 4. Push to the branch (`git push origin my-new-feature`)
90
+ 5. Create a new Pull Request
91
+
92
+ You can spin up a local redis instance in virtualbox by using the included Vagrantfile
93
+ and typing `vagrant up`. Monitor incoming messages using `vagrant ssh -c "redis-cli monitor"`
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require "rubocop/rake_task"
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: :build
9
+ task build: [:rubocop, :spec]
data/Vagrantfile ADDED
@@ -0,0 +1,18 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ $script = <<SCRIPT
8
+ apt-get update
9
+ apt-get install -y redis-server
10
+ sed -i '/bind 127.0.0.1/c\\#bind 127.0.0.1' /etc/redis/redis.conf
11
+ redis-server &
12
+ SCRIPT
13
+
14
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
15
+ config.vm.network :forwarded_port, host: 6379, guest: 6379
16
+ config.vm.provision "shell", inline: $script
17
+ config.vm.box = "ubuntu/trusty64"
18
+ end
data/examples/redis.rb ADDED
@@ -0,0 +1,35 @@
1
+ # Here's how to start using log4r right away
2
+ $LOAD_PATH << File.join(File.dirname(__FILE__), "..", "/lib")
3
+ require "log4r"
4
+ require "log4r/logstash"
5
+ require "securerandom"
6
+
7
+ Log = Log4r::Logger.new("outofthebox") # create a logger
8
+ Log.add Log4r::Outputter.stderr # which logs to stdout
9
+
10
+ r = SecureRandom.uuid
11
+
12
+ additional_fields = {}
13
+ additional_fields["foo"] = "bar"
14
+ additional_fields["goo"] = "baz"
15
+ additional_fields["random"] = -> { r }
16
+
17
+ Log.add Log4r::Logstash::RedisOutputter.new("redis",
18
+ data_field_name: "Message",
19
+ level_field_name: "Level",
20
+ additional_fields: additional_fields)
21
+
22
+ # do some logging
23
+ def do_logging
24
+ Log.debug "debugging"
25
+ Log.info "a piece of info"
26
+ Log.warn "Danger, Will Robinson, danger!"
27
+ Log.error "I dropped my Wookie! :("
28
+ Log.fatal "kaboom!"
29
+ end
30
+ do_logging
31
+
32
+ # now let's filter anything below WARN level (DEBUG and INFO)
33
+ puts "-= Changing level to WARN =-"
34
+ Log.level = Log4r::WARN
35
+ do_logging
@@ -0,0 +1,28 @@
1
+ require "json"
2
+ require "time"
3
+
4
+ module Log4r
5
+ module Logstash
6
+ class JsonFormatter
7
+ def self.format(logevent, index,
8
+ data_field_name = "data", level_field_name = "level",
9
+ additional_fields = {})
10
+ data = {}
11
+ data["type"] = "#{logevent.class}"
12
+ data["index"] = "#{index}"
13
+ data["timestamp"] = Time.now.getutc.iso8601
14
+ data[level_field_name] = LNAMES[logevent.level]
15
+ data[data_field_name] = logevent.data
16
+ data.merge! eval_map_proc_values(additional_fields)
17
+ data.to_json
18
+ end
19
+
20
+ def self.eval_map_proc_values(map)
21
+ map.each do |key, value|
22
+ map[key] = value.call if value.class == Proc
23
+ end
24
+ map
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,46 @@
1
+ require "log4r/outputter/outputter"
2
+ require "redis"
3
+ require "retryable"
4
+
5
+ require_relative "../formatter/json_formatter"
6
+
7
+ module Log4r
8
+ module Logstash
9
+ class RedisOutputter < Log4r::Outputter
10
+ def initialize(name, hash = {})
11
+ super(name, hash)
12
+
13
+ @index = hash[:index] || "logstash"
14
+ @additional_fields = hash[:additional_fields] || {}
15
+ @data_field_name = hash[:data_field_name] || "data"
16
+ @level_field_name = hash[:level_field_name] || "level"
17
+ @timestamp_field_name = hash[:timestamp_field_name] || "timestamp"
18
+
19
+ init_redis(hash[:host], hash[:port])
20
+ end
21
+
22
+ private
23
+
24
+ def init_redis(host, port)
25
+ host ||= "127.0.0.1"
26
+ port = (port || 6379).to_i
27
+ @redis = Redis.new(host: host, port: port)
28
+ end
29
+
30
+ def canonical_log(logevent)
31
+ json = JsonFormatter.format(logevent, @index, @data_field_name,
32
+ @level_field_name,
33
+ @additional_fields)
34
+ tries = 3
35
+ begin
36
+ Retryable.retryable(tries: tries, sleep: ->(n) { 2**n }) do
37
+ @redis.rpush @index, json
38
+ end
39
+ rescue
40
+ raise "Unable to connect to #{@redis.inspect} after #{tries} tries. \
41
+ Please confirm your ability to connect to that redis instance."
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ module Log4r
2
+ module Logstash
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require "log4r/logstash/version"
2
+
3
+ module Log4r
4
+ module Logstash
5
+ autoload :RedisOutputter, "log4r/logstash/outputter/redis_outputter.rb"
6
+ end
7
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'log4r/logstash/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "log4r-logstash"
8
+ spec.version = Log4r::Logstash::VERSION
9
+ spec.authors = ["Christopher Baldauf"]
10
+ spec.email = ["cbaldauf@cimpress.com"]
11
+ spec.summary = %q{Ship json encoded log4r messages to logstash.}
12
+ spec.homepage = "http://github.com/Cimpress-MCP/log4r-logstash"
13
+ spec.license = "Apache 2"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.6"
21
+ spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "rspec", "~> 3.1"
23
+ spec.add_development_dependency "rubocop", "~> 0.28"
24
+
25
+ spec.add_runtime_dependency "log4r", "~> 1.1"
26
+ spec.add_runtime_dependency "redis", "~> 3.2"
27
+ spec.add_runtime_dependency "retryable", "~> 2.0"
28
+ end
@@ -0,0 +1,54 @@
1
+ require "log4r/logstash/formatter/json_formatter"
2
+ require "log4r/logger"
3
+ require "log4r/logevent"
4
+ require "securerandom"
5
+
6
+ describe Log4r::Logstash::JsonFormatter do
7
+ let(:logevent) do
8
+ logger = Log4r::Logger.new("my test logger")
9
+ Log4r::LogEvent.new(1, logger, nil, "my test log message")
10
+ end
11
+ let(:index) { "my_index_name" }
12
+
13
+ describe "basic formatting" do
14
+ it "handles a log event" do
15
+ json = Log4r::Logstash::JsonFormatter.format(logevent, index)
16
+ expect(json).to include('"type":"Log4r::LogEvent"')
17
+ expect(json).to include('"index":"my_index_name"')
18
+ expect(json).to include('"timestamp":')
19
+ expect(json).to include('"level":"DEBUG"')
20
+ expect(json).to include('"data":"my test log message"')
21
+ end
22
+ end
23
+
24
+ describe "data field name" do
25
+ it "can be overridden" do
26
+ expect(Log4r::Logstash::JsonFormatter.format(logevent, index, "DATA")).to include('"DATA":"my test log message"')
27
+ end
28
+ end
29
+
30
+ describe "level field name" do
31
+ it "can be overridden" do
32
+ expect(Log4r::Logstash::JsonFormatter.format(logevent, index, nil, "LEVEL")).to include('"LEVEL":"DEBUG"')
33
+ end
34
+ end
35
+
36
+ describe "additional fields" do
37
+ it "include literals" do
38
+ additional_fields = {}
39
+ additional_fields["foo"] = "bar"
40
+ additional_fields["goo"] = "baz"
41
+ json = Log4r::Logstash::JsonFormatter.format(logevent, index, nil, nil, additional_fields)
42
+ expect(json).to include('"foo":"bar"')
43
+ expect(json).to include('"goo":"baz"')
44
+ end
45
+
46
+ it "evaluates lambdas" do
47
+ r = SecureRandom.uuid
48
+ additional_fields = {}
49
+ additional_fields["foo"] = -> { r }
50
+ json = Log4r::Logstash::JsonFormatter.format(logevent, index, nil, nil, additional_fields)
51
+ expect(json).to include('"foo":"' + r + '"')
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,87 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ RSpec.configure do |config|
18
+ # rspec-expectations config goes here. You can use an alternate
19
+ # assertion/expectation library such as wrong or the stdlib/minitest
20
+ # assertions if you prefer.
21
+ config.expect_with :rspec do |expectations|
22
+ # This option will default to `true` in RSpec 4. It makes the `description`
23
+ # and `failure_message` of custom matchers include text for helper methods
24
+ # defined using `chain`, e.g.:
25
+ # be_bigger_than(2).and_smaller_than(4).description
26
+ # # => "be bigger than 2 and smaller than 4"
27
+ # ...rather than:
28
+ # # => "be bigger than 2"
29
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
+ end
31
+
32
+ # rspec-mocks config goes here. You can use an alternate test double
33
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
34
+ config.mock_with :rspec do |mocks|
35
+ # Prevents you from mocking or stubbing a method that does not exist on
36
+ # a real object. This is generally recommended, and will default to
37
+ # `true` in RSpec 4.
38
+ mocks.verify_partial_doubles = true
39
+ end
40
+
41
+ # The settings below are suggested to provide a good initial experience
42
+ # with RSpec, but feel free to customize to your heart's content.
43
+ # # These two settings work together to allow you to limit a spec run
44
+ # # to individual examples or groups you care about by tagging them with
45
+ # # `:focus` metadata. When nothing is tagged with `:focus`, all examples
46
+ # # get run.
47
+ # config.filter_run :focus
48
+ # config.run_all_when_everything_filtered = true
49
+ #
50
+ # # Limits the available syntax to the non-monkey patched syntax that is recommended.
51
+ # # For more details, see:
52
+ # # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
53
+ # # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
54
+ # # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
55
+ # config.disable_monkey_patching!
56
+ #
57
+ # # This setting enables warnings. It's recommended, but in some cases may
58
+ # # be too noisy due to issues in dependencies.
59
+ # config.warnings = true
60
+ #
61
+ # # Many RSpec users commonly either run the entire suite or an individual
62
+ # # file, and it's useful to allow more verbose output when running an
63
+ # # individual spec file.
64
+ # if config.files_to_run.one?
65
+ # # Use the documentation formatter for detailed output,
66
+ # # unless a formatter has already been configured
67
+ # # (e.g. via a command-line flag).
68
+ # config.default_formatter = 'doc'
69
+ # end
70
+ #
71
+ # # Print the 10 slowest examples and example groups at the
72
+ # # end of the spec run, to help surface which specs are running
73
+ # # particularly slow.
74
+ # config.profile_examples = 10
75
+ #
76
+ # # Run specs in random order to surface order dependencies. If you find an
77
+ # # order dependency and want to debug it, you can fix the order by providing
78
+ # # the seed, which is printed after each run.
79
+ # # --seed 1234
80
+ # config.order = :random
81
+ #
82
+ # # Seed global randomization in this process using the `--seed` CLI option.
83
+ # # Setting this allows you to use `--seed` to deterministically reproduce
84
+ # # test failures related to randomization by passing the same `--seed` value
85
+ # # as the one that triggered the failure.
86
+ # Kernel.srand config.seed
87
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: log4r-logstash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Christopher Baldauf
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.28'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0.28'
69
+ - !ruby/object:Gem::Dependency
70
+ name: log4r
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: redis
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '3.2'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '3.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: retryable
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '2.0'
111
+ description:
112
+ email:
113
+ - cbaldauf@cimpress.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - .gitignore
119
+ - .rspec
120
+ - .rubocop.yml
121
+ - .travis.yml
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - Vagrantfile
127
+ - examples/redis.rb
128
+ - lib/log4r/logstash.rb
129
+ - lib/log4r/logstash/formatter/json_formatter.rb
130
+ - lib/log4r/logstash/outputter/redis_outputter.rb
131
+ - lib/log4r/logstash/version.rb
132
+ - log4r-logstash.gemspec
133
+ - spec/log4r/logstash/formatter/json_formatter_spec.rb
134
+ - spec/spec_helper.rb
135
+ homepage: http://github.com/Cimpress-MCP/log4r-logstash
136
+ licenses:
137
+ - Apache 2
138
+ metadata: {}
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubyforge_project:
155
+ rubygems_version: 2.4.5
156
+ signing_key:
157
+ specification_version: 4
158
+ summary: Ship json encoded log4r messages to logstash.
159
+ test_files:
160
+ - spec/log4r/logstash/formatter/json_formatter_spec.rb
161
+ - spec/spec_helper.rb