Sha256: e7017f133effe11bbd8cb3d5da12d4c59d85327c0986a6934734d3e469ee8f0a

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

module HttpEventLogger
  module Test

    class CustomLogger < HttpEventLogger::Logger

      def initialize(logger)
        super(logger: logger)
      end

      def connected(connection)
        log "Custom - Connected: #{connection.uri}"
      end

      def sent(request)
        log "Custom - Sent: Request Event"
      end

      def received(response)
        log "Custom - Received: Response Event"
      end

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
http_event_logger-0.1.0 ./spec/support/custom_logger.rb
http_event_logger-0.1.0.rc4 ./spec/support/custom_logger.rb
http_event_logger-0.1.0.rc3 ./spec/support/custom_logger.rb
http_event_logger-0.1.0.rc2 ./spec/support/custom_logger.rb
http_event_logger-0.1.0.rc1 ./spec/support/custom_logger.rb