Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
Add disruptor jar for complete async logging support
Browse files Browse the repository at this point in the history
  • Loading branch information
jurmous committed Feb 20, 2015
1 parent 79b79eb commit 708e68f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@files=[
{'url' => "https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.1/log4j-core-2.1.jar", 'sha1' => '31823dcde108f2ea4a5801d1acc77869d7696533' },
{'url' => "https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.1/log4j-api-2.1.jar", 'sha1' => '588c32c91544d80cc706447aa2b8037230114931'}
{'url' => "https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.1/log4j-api-2.1.jar", 'sha1' => '588c32c91544d80cc706447aa2b8037230114931'},
{'url' => "https://repo1.maven.org/maven2/com/lmax/disruptor/3.3.0/disruptor-3.3.0.jar", 'sha1' => '6925c7787741f6ac1535188ea450f04fa1246acf'}
]

task :default do
Expand Down
1 change: 1 addition & 0 deletions lib/logstash/inputs/log4j2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def register
vendor_dir = ::File.expand_path("../../../vendor/", ::File.dirname(__FILE__))
require File.join(vendor_dir, "log4j-api-2.1.jar")
require File.join(vendor_dir, "log4j-core-2.1.jar")
require File.join(vendor_dir, "disruptor-3.3.0.jar")

Java::OrgApacheLoggingLog4jCoreImpl.const_get("Log4jLogEvent")
rescue
Expand Down
2 changes: 1 addition & 1 deletion logstash-input-log4j2.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|

s.name = 'logstash-input-log4j2'
s.version = '4.0'
s.version = '5.0'
s.licenses = ['Apache License (2.0)']
s.summary = "$summary"
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
Expand Down

0 comments on commit 708e68f

Please sign in to comment.