[racket] web server log format

From: Jordan Schatz (jordan at noionlabs.com)
Date: Fri Dec 9 19:07:19 EST 2011

I have a web server with logging setup like so:
(serve/servlet start
               #:log-file "../logs/server"
               #:log-format 'apache-default)

Here are the headers from a client request
HTTP/1.1 200 OK
Date: Fri, 09 Dec 2011 21:23:16 GMT
Last-Modified: Thu, 08 Dec 2011 05:04:56 GMT
Server: Racket
Content-Type: text/html
Accept-Ranges: bytes
Content-Length: 2629

And here is what the log records:
69.51.119.190 - - [09/Dec/2011:16:23:16 -0500] "GET /index.html HTTP/1.1" 200 512

The log's request size doesn't seem to match the content length of the
request, 512 vrs 2629, also every request size in the log is 512. Am I
missing something?

Thanks,
Jordan


Posted on the users mailing list.