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.

FEATURES

SYNOPSIS

Clogger may be loaded as Rack middleware in your config.ru:

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

If you’re using Rails 2.3.x or later, in your config/environment.rb somewhere inside the “Rails::Initializer.run 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
run YourApplication.new

VARIABLES

REQUIREMENTS

DEVELOPMENT

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

git://bogomips.org/clogger.git
git://repo.or.cz/clogger.git

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.

CONTACT

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.

Homepage: clogger.rubyforge.org/

INSTALL

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.