logger.rb

Path: lib/couchrest/middlewares/logger.rb
Last Update: Tue Aug 10 18:49:12 -0600 2010

USAGE

in your rack.rb file require this file and then:

couch = CouchRest.new LOG_DB = couch.database!(‘couchrest-logger’) use CouchRest::Logger, LOG_DB

Note: to require just this middleware, if you have the gem installed do: require ‘couchrest/middlewares/logger‘

For log processing examples, see examples at the bottom of this file

[Validate]