Format the request as describe in the Apache combined log format.
http:httpd.apache.orgdocs2.2/logs.html#combined

The format is: %h - %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"
%h: This is the IP address of the client (remote host) which made the request to the server.
%u: This is the userid of the person requesting the document as determined by HTTP authentication.
%t: The time that the request was received.
%r: The request line from the client is given in double quotes.
%>s: This is the status code that the server sends back to the client.
%b: The last part indicates the size of the object returned to the client, not including the response headers.
%{Referer}: The Referer (sic) HTTP request header.
%{User-agent}: The User-Agent HTTP request header.