Sha256: f2257afd2ca69058af7b0dcaf703aa0b0b9ebd4b9604eb317f484b34891abab9

Contents?: true

Size: 467 Bytes

Versions: 19

Compression:

Stored size: 467 Bytes

Contents

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

module LogStash module Util
  module Loggable
    class << self
      def logger=(new_logger)
        @logger = new_logger
      end

      def logger
        @logger ||= Cabin::Channel.get(LogStash)
      end
    end

    def self.included(base)
      class << base
        def logger
          Loggable.logger
        end
      end
    end

    def logger
      Loggable.logger
    end
  end
end; end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
logstash-core-5.0.0.alpha6.snapshot1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha5.snapshot1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha4.snapshot3-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha4.snapshot2-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha4.snapshot1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot8-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot7-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot6-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot5-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot4-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot2-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha3.snapshot1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha2-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha2.snapshot2-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha2.snapshot1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha1-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha1.snapshot2-java lib/logstash/util/loggable.rb
logstash-core-5.0.0.alpha1.snapshot1-java lib/logstash/util/loggable.rb