# Clogger 0.3.0 - configurable logging for Rack

**URL:** <https://www.ruby-forum.com/t/clogger-0-3-0-configurable-logging-for-rack/183207>\
**Category:** Ruby\
**Created:** [February 9, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/clogger-0-3-0-configurable-logging-for-rack/183207 "2010-02-09T23:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/97f17d/32.png) [@ericw](https://www.ruby-forum.com/u/ericw)\
**Post date:** [February 9, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/clogger-0-3-0-configurable-logging-for-rack/183207/1 "2010-02-09T23:15:10Z")

</div>

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/](http://clogger.rubyforge.org/)
- removed\_email\_address@domain.invalid
- git://git.bogomips.org/clogger.git
- [configurable request logging for Rack](http://git.bogomips.org/cgit/clogger.git)

Changes:

You may now force the :reentrant flag to +true+ or +false+ in  
your Rack configuration file:

use Clogger,  
:format =\> Clogger::Format::Combined,  
:logger =\> ::File.open(“/path/to/log”, “ab”),  
:reentrant =\> true

This is to be compatible with Rack servers that do not use use  
events or Fibers for concurrency instead of threads. By  
default, reentrancy is enabled if env[“rack.multithread”] is  
true, but “rack.multithread” cannot indicative of a reentrancy  
requirement in a web server.
