Skip to content

Commit

Permalink
Setup Log4j (logstash-plugins#63)
Browse files Browse the repository at this point in the history
* Setup Log4j 

Setup Log4j so it will fix the warning messages

Fixes logstash-plugins#62

* Bump version to 3.0.0.beta4
  • Loading branch information
Suyog Rao committed May 2, 2016
1 parent 5de6b25 commit 8750914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.0.beta4
- Fix Log4j warnings by setting up the logger (#62)

## 3.0.0.beta3
- Use jar dependencies
- Fixed snappy compression issue
Expand Down
2 changes: 2 additions & 0 deletions lib/logstash/outputs/kafka.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class LogStash::Outputs::Kafka < LogStash::Outputs::Base

public
def register
LogStash::Logger.setup_log4j(@logger)

@producer = create_producer
@codec.on_event do |event, data|
begin
Expand Down
2 changes: 1 addition & 1 deletion logstash-output-kafka.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|

s.name = 'logstash-output-kafka'
s.version = '3.0.0.beta3'
s.version = '3.0.0.beta4'
s.licenses = ['Apache License (2.0)']
s.summary = 'Output events to a Kafka topic. This uses the Kafka Producer API to write messages to a topic on the broker'
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
Expand Down

0 comments on commit 8750914

Please sign in to comment.