Sha256: 104f2696fa3af6ce7ee5c66584c5e7cb72736ddb302afafe2d3fe189aa8019d7

Contents?: true

Size: 442 Bytes

Versions: 11

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Buildkite::TestCollector
  class Logger < ::Logger
    class Formatter < ::Logger::Formatter
      def call(severity, time, _program, message)
        "#{time.utc.iso8601(9)} pid=#{::Process.pid} tid=#{::Thread.current.object_id} #{severity}: #{message}\n"
      end
    end

    def initialize(*args, **kwargs)
      super
      self.formatter = Buildkite::TestCollector.log_formatter
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
buildkite-test_collector-2.0.0.pre lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.5.0 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.4.2 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.4.1 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.3.1 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.3.0 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.2.5 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.2.4 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.2.3 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.1.3 lib/buildkite/test_collector/logger.rb
buildkite-test_collector-1.1.2 lib/buildkite/test_collector/logger.rb