class TP2::Logger
def format_request_log_line(request, response_headers)
def format_request_log_line(request, response_headers) request_headers = request.headers uri = full_uri(request_headers) status = response_headers[':status'] || '200' format( '%<client_ip>s %<method>s %<uri>s %<status>s %<tx>d', client_ip: request.forwarded_for || '?', method: request_headers[':method'].upcase, uri: uri, status: status, tx: request_headers[':tx'] ) end