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.4.3 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.4.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.4.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.4.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.3.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.5 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.4 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.3 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.2.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.5 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.4 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.3 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.2 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.1 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.1.0 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.0.5 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.0.4 lib/fluent/log-ext.rb
fluent-plugin-elasticsearch-5.0.3 lib/fluent/log-ext.rb