Sha256: be51b425424ee423b0f3dec70ddc859ceda789d5450c74d34e5a31a5d52f8664

Contents?: true

Size: 435 Bytes

Versions: 38

Compression:

Stored size: 435 Bytes

Contents

# encoding: utf-8
require "logstash/namespace"
require "logstash/logging"

module LogStash::Util::Require
  class << self
    attr_accessor :logger

    def require(lib, gemdep, message=nil)
      @logger ||= LogStash::Logger.new(STDERR)
      begin
        require lib
      rescue LoadError => e
        @logger.error("Failed loading '#{lib}'")
      end
    end # def require
  end # class << self
end # def LogStash::Util::Require

Version data entries

38 entries across 38 versions & 4 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/util/require-helper.rb
logstash-core-1.5.6-java lib/logstash/util/require-helper.rb
logstash-core-1.5.5-java lib/logstash/util/require-helper.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/util/require-helper.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/util/require-helper.rb
logstash-core-2.0.0.beta1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.4-java lib/logstash/util/require-helper.rb
logstash-core-1.5.4.snapshot3-java lib/logstash/util/require-helper.rb
logstash-core-1.5.4.snapshot2-java lib/logstash/util/require-helper.rb
logstash-core-1.5.4.snapshot1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.3-java lib/logstash/util/require-helper.rb
logstash-core-1.5.3.snapshot2-java lib/logstash/util/require-helper.rb
logstash-core-1.5.3.snapshot1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.2.2-java lib/logstash/util/require-helper.rb
logstash-core-1.5.2.1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.2-java lib/logstash/util/require-helper.rb
logstash-core-1.5.2.snapshot2-java lib/logstash/util/require-helper.rb
logstash-core-1.5.2.snapshot1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.1-java lib/logstash/util/require-helper.rb
logstash-core-1.5.1.snapshot1-java lib/logstash/util/require-helper.rb