Files | Admin

Notes:

Release Name: 0.0.4

Notes:
Clogger is Rack middleware for logging HTTP requests.  The log format
is customizable so you can specify exactly which fields to log.

The pure Ruby version now escapes with uppercase A-F
characters to match nginx log output.  There are now extra
checks against badly behaving Rack applications and 500
errors will be logged before TypeError is raised if the
application response does not conform (minimally) to Rack
expectations.  Finally, handling of $request (requests
without "HTTP_VERSION" set in the Rack env) should now be
logged correctly without unnecessary trailing characters.

Hackers: the primary git repository has been moved to
git://git.bogomips.org/clogger.git for now since I'm having
issues with pushing to Rubyforge (seems related to Support
Requests item #26185).



Changes: GNUmakefile | 1 + History.txt | 16 ++++++++++++++++ README.txt | 8 ++++---- ext/clogger_ext/clogger.c | 19 ++++++++++++++----- lib/clogger.rb | 2 +- lib/clogger/pure.rb | 13 +++++++++---- test/test_clogger.rb | 29 +++++++++++++++++++++++++++++ 7 files changed, 74 insertions(+), 14 deletions(-) commit d60d0b4656718a63137f89baa15b6589740ad454 Author: Eric Wong <normalperson@yhbt.net> Date: Wed Sep 2 01:04:19 2009 -0700 clogger 0.0.4 commit 144e9909ea0f875b3dd58c6c850e25ed9f70c3cb Author: Eric Wong <normalperson@yhbt.net> Date: Tue Sep 1 19:04:52 2009 -0700 correctly rebuild simple HTTP/0.9 GET requests Back in HTTP/0.9 days (before it was called HTTP/0.9), "GET /uri/goes/here\r\n" was a valid HTTP request. See rfc 1945, section 4.1 for details on this ancient "Simple-Request" scheme used by HTTP/0.9 clients. commit 98d72e530ae0e7899aee88bcb0a607e046b32965 Author: Eric Wong <normalperson@yhbt.net> Date: Tue Sep 1 15:40:07 2009 -0700 README: point to repo.or.cz git mirror setup The rubyforge one is out-of-date right now, so lets stop referencing it until the issues around it can be fixed. commit 12d45b13dc28be86ada0bf304153155cb1975ba9 Author: Eric Wong <normalperson@yhbt.net> Date: Tue Sep 1 15:17:06 2009 -0700 README: new git repository I seem to have problems pushing to Rubyforge at the moment, so I'll put the repository on a host I have more control over. Tracking the issue here: http://rubyforge.org/tracker/index.php?func=detail&aid=26185&group_id=5&atid=102 commit c9f68fc6294a59c31728bab9e01350c4b271fe30 Author: Eric Wong <normalperson@yhbt.net> Date: Sun Aug 30 22:27:26 2009 -0700 Ensure hex escaping is done in uppercase The pure variant was using lower-case output instead of upper case, the ext variant was actually fine in this case. This is for nginx output format compatibility. commit a6e410b7f85f22e6adbc55eb9dd3a494ca7200b2 Author: Eric Wong <normalperson@yhbt.net> Date: Sun Aug 30 22:27:25 2009 -0700 ext: ensure headers#each in response is valid We're not Rack::Lint, but we still need to take steps to avoid segfaulting if we host non-Rack::Lint-compliant applications. This also updates the pure variant to fail on bad applications, too. commit a6978053b9e9f4eff3e54bda6b4aa0c06f707075 Author: Eric Wong <normalperson@yhbt.net> Date: Sun Aug 30 22:27:24 2009 -0700 ext: compiler compatibility fix Remove trailing "," for enum commit 465625fa4763177553846653c2b1198c543d2496 Author: Eric Wong <normalperson@yhbt.net> Date: Tue Sep 1 11:26:59 2009 -0700 GNUmakefile: post_news after release