Sha256: 51cd76a452ec88306033b68c0d4aa4c920cf5785fc79eb5a3ef08b18485453f5

Contents?: true

Size: 598 Bytes

Versions: 61

Compression:

Stored size: 598 Bytes

Contents

require 'fluent/log'
# For elasticsearch-ruby v7.0.0 or later
# logger for Elasticsearch::Loggable required the following methods:
#
# * debug?
# * info?
# * warn?
# * error?
# * fatal?

module Fluent
  class Log
    # Elasticsearch::Loggable does not request trace? method.
    # def trace?
    #   @level <= LEVEL_TRACE
    # end

    def debug?
      @level <= LEVEL_DEBUG
    end

    def info?
      @level <= LEVEL_INFO
    end

    def warn?
      @level <= LEVEL_WARN
    end

    def error?
      @level <= LEVEL_ERROR
    end

    def fatal?
      @level <= LEVEL_FATAL
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
fluent-plugin-elasticsearch-5.0.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-dext-5.0.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.0.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.0.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.3.3 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.3.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.3.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.3.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.2.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.2.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.2.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.1.4 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.1.3 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.1.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.1.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.1.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.0.11 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.0.10 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.0.9 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-4.0.8 lib/fluent/log-ext.rb