Sha256: 1df0e9f1262131e959172bd462e6a62578927f520edbf6b353bb1431eb4c7c5d

Contents?: true

Size: 453 Bytes

Versions: 18

Compression:

Stored size: 453 Bytes

Contents

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

module LogStash module Util
  module Loggable
    def self.included(klass)
      def klass.logger
        ruby_name = self.name || self.class.name || self.class.to_s
        log4j_name = ruby_name.gsub('::', '.').downcase
        @logger ||= LogStash::Logging::Logger.new(log4j_name)
      end

      def logger
        self.class.logger
      end
    end
  end
end; end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/logstash-core-5.0.0-java/lib/logstash/util/loggable.rb
logstash-core-5.0.2-java lib/logstash/util/loggable.rb
logstash-core-5.0.1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.pre.rc1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.pre.beta1-java lib/logstash/util/loggable.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha6.snapshot5-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha6.snapshot4-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha6.snapshot3-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha6.snapshot2-java lib/logstash/util/loggable.rb