def log_success(result, code, body, headers, host, path, request_uuid, started_at, log_level)
      length = (headers && headers[:content_length]) || (body && body.size) || "-"
      duration = "%.0fms" % ((Time.now - started_at) * 1000)
      completed = "Completed <#{request_uuid}> in #{duration} | #{code || "nil"} [#{host}#{path}] | #{length} bytes"
      completed << " | #{result.inspect}" if Log.level == :debug
      Log.send(log_level, completed)
      true
    end
def log_success(result, code, body, headers, host, path, request_uuid, started_at, log_level)
      length = (headers && headers[:content_length]) || (body && body.size) || "-"
      duration = "%.0fms" % ((Time.now - started_at) * 1000)
      completed = "Completed <#{request_uuid}> in #{duration} | #{code || "nil"} [#{host}#{path}] | #{length} bytes"
      completed << " | #{result.inspect}" if Log.level == :debug
      Log.send(log_level, completed)
      true
    end
Log successful request completion

 @param [Object] result to be returned to client
 @param [Integer, NilClass] code for response status
 @param [Object] body of response
 @param [Hash] headers for response
 @param [String] host server URL where request was completed
 @param [String] path in URI for desired resource
 @param [String] request_uuid uniquely identifying request
 @param [Time] started_at time for request
 @param [Symbol] log_level to use when logging information about the request
   other than errors

 @return [TrueClass] always true