Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

Version: 1.4.2-1-2c0f5a1 

/ opt / logstash / spec / inputs / log4j.rb

# encoding: utf-8

require "logstash/plugin"

describe "inputs/log4j" do

  it "should register" do
    input = LogStash::Plugin.lookup("input", "log4j").new("mode" => "client")

    # register will try to load jars and raise if it cannot find jars or if org.apache.log4j.spi.LoggingEvent class is not present
    expect {input.register}.to_not raise_error
  end
end