[ANN] clogger 0.3.0 - configurable logging for Rack

E

Eric Wong

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/
* (e-mail address removed)
* git://git.bogomips.org/clogger.git
* 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top