logger.rb

Path: lib/couchrest/middlewares/logger.rb
Last Update: Wed Aug 15 20:44:33 +0000 2012

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]