Redirecting to ...

Class Index

Clogger - configurable request logging for Rack

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



Clogger may be loaded as Rack middleware in your

# ENV['CLOGGER_PURE'] = '1' # uncomment to disable C extension
require "clogger"
use Clogger,
    :format => :Combined,
    :path => "/path/to/log",
    :reentrant => true

If you’re using Rails 2.3.x or later, in your config/environment.rb somewhere inside the “ do |config|” block:

config.middleware.use 'Clogger',
    :format => :Combined,
    :path => "/path/to/log",
    :reentrant => false

Instead of specifying a :path, you may also specify a :logger object that receives a “<<” method:

use Clogger, :logger=> $stdout, :reentrant => true




The latest development happens in git and is published to the following:


You may also browse and download snapshot tarballs:

The mailing list (see below) is central for coordination and development. Patches should always be sent inline (git format-patch -M + git send-email) so we can reply to them inline.


All feedback (bug reports, user/development discussion, patches, pull requests) go to the mailing list.

Do not send HTML mail or attachments. Do not top post.



For Rubygems users:

gem install clogger

If you do not use Rubygems, you may also use setup.rb from the tarballs on the Rubyforge project page:

There is an optional C extension that should be compatible with MatzRuby. The extensions should automatically be disabled for users of other Ruby implementations, but be sure to let us know if that’s not the case. No pre-built binaries are currently distributed, let us know if you’re interested in helping with the release/support effort.

Originally generated with the Darkfish Rdoc Generator 2, modified by wrongdoc.