[ANN] clogger 0.3.0 - configurable logging for Rack

Discussion in 'Ruby' started by Eric Wong, Feb 9, 2010.

  1. Eric Wong

    Eric Wong Guest

    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/
    *
    * 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.

    --
    Eric Wong
    Eric Wong, Feb 9, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Wong
    Replies:
    9
    Views:
    131
    Iñaki Baz Castillo
    Sep 2, 2009
  2. Eric Wong
    Replies:
    0
    Views:
    99
    Eric Wong
    Sep 3, 2009
  3. Eric Wong
    Replies:
    0
    Views:
    85
    Eric Wong
    Sep 8, 2009
  4. Eric Wong
    Replies:
    0
    Views:
    87
    Eric Wong
    Sep 9, 2009
  5. Eric Wong
    Replies:
    0
    Views:
    87
    Eric Wong
    Jan 7, 2010
Loading...

Share This Page