Sha256: 63c5abb3813f01b58650b0a8d062479c1554f18cd928d72accb5c5671185e67d

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

require 'helper'
require 'fluent/log-ext'

class TestFluentLogExtHandler < Test::Unit::TestCase
  def setup
    @log_device = Fluent::Test::DummyLogDevice.new
    dl_opts = {:log_level => ServerEngine::DaemonLogger::INFO}
    logger = ServerEngine::DaemonLogger.new(@log_device, dl_opts)
    @log = Fluent::Log.new(logger)
  end

  def test_trace?
    assert_false @log.respond_to?(:trace?)
  end

  def test_debug?
    assert_true @log.respond_to?(:debug?)
  end

  def test_info?
    assert_true @log.respond_to?(:info?)
  end

  def test_warn?
    assert_true @log.respond_to?(:warn?)
  end

  def test_error?
    assert_true @log.respond_to?(:error?)
  end

  def test_fatal?
    assert_true @log.respond_to?(:fatal?)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fluent-plugin-elasticsearch2-3.5.7 test/test_log-ext.rb
fluent-plugin-elasticsearch2-3.5.6 test/test_log-ext.rb
fluent-plugin-elasticsearch2-3.5.5 test/test_log-ext.rb
fluent-plugin-elasticsearch-3.5.4 test/test_log-ext.rb