Sha256: d8a1c8b97b398fc9eb58f6ff1c642c35b1d8b8bfce5c9eafc943c95d9d8036f7

Contents?: true

Size: 662 Bytes

Versions: 40

Compression:

Stored size: 662 Bytes

Contents

describe Appsignal::Utils::IntegrationLogger do
  let(:log_stream) { std_stream }
  let(:logs) { log_contents(log_stream) }
  let(:logger) do
    Appsignal::Utils::IntegrationLogger.new(log_stream).tap do |l|
      l.formatter = logger_formatter
    end
  end

  it "logs messages" do
    logger.debug("debug message")
    logger.info("info message")
    logger.warn("warning message")
    logger.error("error message")

    expect(logs).to contains_log(:debug, "debug message")
    expect(logs).to contains_log(:info, "info message")
    expect(logs).to contains_log(:warn, "warning message")
    expect(logs).to contains_log(:error, "error message")
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.6 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.5-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.5 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.4-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.4 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.3-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.3 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.2-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.2 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.1-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.1 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.0-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.0 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-3.13.1-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-3.13.1 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-3.13.1.alpha.1-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-3.13.1.alpha.1 spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.0.beta.2-java spec/lib/appsignal/utils/integration_logger_spec.rb
appsignal-4.0.0.beta.2 spec/lib/appsignal/utils/integration_logger_spec.rb