Sha256: da173b4390387717d8e1398c663fdc90dbe0dd8bc21cedda0903d3e7b36f0c1c

Contents?: true

Size: 347 Bytes

Versions: 40

Compression:

Stored size: 347 Bytes

Contents

require 'logger'
require 'semantic_logger'

module PactBroker
  module Logging
    class DefaultFormatter < SemanticLogger::Formatters::Default
      def initialize
        @formatter = ::Logger::Formatter.new
      end

      def call(log, output)
        @formatter.call(log.level.upcase, log.time, nil, log.message)
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
pact_broker-2.57.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.56.1 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.56.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.55.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.54.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.53.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.52.2 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.52.1 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.52.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.51.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.50.1 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.50.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.49.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.48.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.47.1 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.47.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.46.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.45.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.44.0 lib/pact_broker/logging/default_formatter.rb
pact_broker-2.43.0 lib/pact_broker/logging/default_formatter.rb