Files | Admin

Notes:

Release Name: 0.6.0

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

* http://clogger.rubyforge.org/
* clogger@librelist.com
* git://git.bogomips.org/clogger.git

Changes:

Clogger may now be initialized with a :path instead of :logger
to avoid typing "::File" in config.ru files to avoid conflicting
with the completely-unrelated Rack::File.

$request_time is now uses the monotonic clock, making it immune
to system clock changes.  $usec and $msec statements were
completely broken in the pure-Ruby code and now fixed.

Rubinius is supported by the optional C extension as well,
the pure-Ruby code always worked.



Changes: .document | 1 + .gitignore | 1 + .wrongdoc.yml | 5 ++ GIT-VERSION-GEN | 2 +- GNUmakefile | 61 ++++++++-------------- README | 12 +++- Rakefile | 95 +--------------------------------- clogger.gemspec | 36 ++++--------- ext/clogger_ext/clogger.c | 103 +++++++++++++++++++++++------------- ext/clogger_ext/extconf.rb | 4 ++ ext/clogger_ext/ruby_1_9_compat.h | 12 +++-- lib/clogger.rb | 24 ++++---- lib/clogger/format.rb | 8 ++-- lib/clogger/pure.rb | 11 +++- test/test_clogger.rb | 48 +++++++++++++++++ 15 files changed, 198 insertions(+), 225 deletions(-) commit 04ac0bbb1a7eb6d36d80a33e5798c7bbd62455ef Author: Eric Wong Date: Sat Dec 25 00:59:58 2010 -0800 clogger 0.6.0 - :path shortcut, minor bugfixes Clogger may now be initialized with a :path instead of :logger to avoid typing "::File" in config.ru files to avoid conflicting with the completely-unrelated Rack::File. $request_time is now uses the monotonic clock, making it immune to system clock changes. $usec and $msec statements were completely broken in the pure-Ruby code and now fixed. Rubinius is supported by the optional C extension as well, the pure-Ruby code always worked. commit 8492f6bbc56d42e3068f25ca233faa78884d5a77 Author: Eric Wong Date: Sat Dec 25 01:27:33 2010 -0800 fix $msec and $usec in pure Ruby variant It was totally broken but nobody uses uses it, so it went unnoticed since the beginning of time. commit 66a5374e724612cd16f270f43102a6ed347208d7 Author: Eric Wong Date: Sat Dec 25 00:58:03 2010 -0800 add support for Rubinius RSTRUCT_PTR access is unlikely to ever happen for Rubinius, so we'll just make a method dispatch and leave the faster code for Ruby 1.8 and 1.9. commit cd91b34636caabb3a1a7cee38f5b84e91eaf62b8 Author: Eric Wong Date: Sat Dec 25 00:47:17 2010 -0800 GNUmakefile: better external RUBYLIB support Duh! commit 6720cdda4b890ac42806a8fe290f96449a150c6a Author: Eric Wong Date: Fri Dec 24 16:48:50 2010 -0800 eliminate unnecessary freeze and dup They're not needed and a waste of code. commit 54cf500266b35beecb9c30b8252e72af9fafbc3e Author: Eric Wong Date: Fri Dec 24 16:32:28 2010 -0800 doc: switch to wrongdoc for documentation wrongdoc eliminates JavaScript from our website and also enables us to cut down on our management scripts/code for supporting the project. commit c77066dd3c93d88ab91653244d36e51dc53e60d2 Author: Eric Wong Date: Fri Dec 24 16:16:27 2010 -0800 GNUmakefile: preserve RUBYLIB env for tests commit fb001a2a1e1037597804db458a28316599fc6e83 Author: Eric Wong Date: Fri Dec 24 16:14:58 2010 -0800 fix #include ordering under FreeBSD 7.2 ruby.h doesn't seem to like being included after time.h commit 2816f3ceaa31452f6bb67a7a7297e6795221cb35 Author: Eric Wong Date: Fri Dec 24 15:41:53 2010 -0800 use clock_gettime for time resolution This lets us use CLOCK_MONOTONIC so we are not affected by system clock changes. We still convert to microseconds instead of nanoseconds for (pure)-Ruby 1.8 code compatibility. There is also little need for nanosecond timer resolution in log files (microsecond is not needed, even). commit 9b46379f75f384c86e42046ab03ce55231197c92 Author: Eric Wong Date: Fri Dec 24 13:23:32 2010 -0800 accept a new :path argument in initialize This lessens confusion for people configuring Clogger in config.ru, since "File" could be mistaken for Rack::File and "::File" needs to be specified. commit 8d58b42d0255880d732ba0700597b312a8219f8f Author: Eric Wong Date: Fri Dec 24 13:17:37 2010 -0800 GNUmakefile: fix running of extension test Oops commit fc58e747835f05a64cf3c4625d6a51baa4bc8369 Author: Eric Wong Date: Tue Oct 5 14:24:11 2010 -0700 GNUmakefile: use portable tar invocation We've been spoiled by GNU tar. commit 0a13fccf2e9c285baf6d7ebfedb004e496dd976d Author: Eric Wong Date: Sun Jun 6 08:15:14 2010 +0000 README: Rack 1.1 is out (and has been for a while)