class VCR::Logger

Provides log message formatting helper methods.
@private

def initialize(stream)

def initialize(stream)
  @stream = stream
end

def log(message, log_prefix, indentation_level = 0)

def log(message, log_prefix, indentation_level = 0)
  indentation = '  ' * indentation_level
  log_message = indentation + log_prefix + message
  @stream.puts log_message
end

def request_summary(request, request_matchers)

def request_summary(request, request_matchers)
  attributes = [request.method, request.uri]
  attributes << request.body.to_s[0, 80].inspect if request_matchers.include?(:body)
  attributes << request.headers.inspect          if request_matchers.include?(:headers)
  "[#{attributes.join(" ")}]"
end

def response_summary(response)

def response_summary(response)
  "[#{response.status.code} #{response.body[0, 80].inspect}]"
end